roccodev / bdat-rs

A library to read and write BDAT tables from all Xenoblade games
Apache License 2.0
9 stars 4 forks source link

automated release builds with github actions #6

Closed ScanMountGoat closed 9 months ago

ScanMountGoat commented 9 months ago

This will make it easier for people that don't want to compile the program from source. It looks like it should just be a matter of copying some of ci.yml to a new file with a trigger for releases.

roccodev commented 9 months ago

Up until now I relied on my existing setup to publish artifacts on each commit, though I've noticed they get deleted after 90 days.

I think I'll create releases for each tag and have the runner build artifacts for them, like you suggested. This will also give me the opportunity to explain what changed on each release and if any steps are required for migration.

I'll work on this in the coming days. Thanks!

roccodev commented 9 months ago

I've added a script. In case you need it, it's https://github.com/RoccoDev/bdat-rs/blob/master/.github/workflows/release.yml

The script builds the executables on release and adds them to the new release as artifacts. It also supports manually rebuilding a release's artifacts with the workflow_dispatch option.

I've then created releases for the 0.2.0, 0.3.0, and 0.4.0 tags, and triggered builds for all of them. They should now be available here.