Open stalkerg opened 11 months ago
Good shout!
You'd have to extend the action to support this kind of functionality. This repo is open for everyone to contribute to and makes for a stable central logic that everyone can use.
If I understand correctly, the question can be summarized like this:
How can I customize the Github Actions parameters to add options like
FileProperties
orFileExclusion
to the Steam depot usingsteam-deploy
action to support game folders with special configurations?
I'd say it's important to have a good understanding of how github actions work first. Here's a great starting point:
https://docs.github.com/en/actions/creating-actions
The steps required to customize and add FileProperties
and FileExclusion
inputs to the action should look like this:
Add new inputs to your fork's actions.yml
. Would probably look something like this (draft):
inputs:
...
fileProperties:
description: 'Additional file properties to apply.'
required: false
fileExclusion:
description: 'Patterns of files to exclude.'
required: false
Add desired logic to steam_deploy.sh
.
Push changes to your fork
To test these changes, update your unity project's workflow file to point to your steam-deploy
fork. It should look something like your_github_username/steam-deploy@master
(replace master
with your branch or tag where you added the changes).
If you plan to contribute changes back to the repository with a pull-request, make sure you follow the contributing guidelines.
Let us know if you have questions 🙏
Thanks everyone, I have no issue making it in my fork, I just put it here to keep track. I will check @GabLeRoux solution and if it works and usefully I will come back with PR.
Depot file it's not just folder with a game, it's have much more important rules like
FileProperties
orFileExclusion
how can I add a such options to generated depot?