build: remove dependency on asset/ directory existence. #51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR simplifies the handling with the asset/ directory. Just a few less instructions for someone to follow who wants to quickly publish a release.
Note than in windows instead of silently passing through, it force-creates an empty asset/ directory instead (and does not error if it does already exist), but which still results in an empty zip file with only the binary.
Tested that it works by running the template with the assets present: https://github.com/chaosteil/bevy_github_ci_template/actions/runs/8217244209 resulting in release https://github.com/chaosteil/bevy_github_ci_template/releases/tag/v0.0.1-test
and as well as running the template without the assets directory present:
https://github.com/chaosteil/bevy_github_ci_template/actions/runs/8217285995 resulting in release https://github.com/chaosteil/bevy_github_ci_template/releases/tag/v0.0.1-test-assetremove