Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: release uploads #23703

Merged
merged 2 commits into from
Oct 4, 2024
Merged

ci: release uploads #23703

merged 2 commits into from
Oct 4, 2024

Conversation

mrpollo
Copy link
Contributor

@mrpollo mrpollo commented Sep 20, 2024

This changes a few things in how we deploy artifacts and metadata.

Artifacts for Releases

The Build All Targets action now listens to tag push events. Whenever we push a new tag (e.g., v1.15.1), this workflow will create a Github Release draft with the same title as the tag name and upload all artifacts as assets for download.

Artifacts for Special branches [stable, main, beta]

When pushing to any of the special branches, we grab the artifacts and metadata and upload them to S3

Manual Dispatch

You can now manually dispatch a new build by specifying a tag name. In cases where we want to try a rebuild of artifacts, it is only available for users with WRITE access to the repository.

Example Release:
Note: this is only a test, there was no tag bound to the release, this won't happen once we merge.
https://github.com/PX4/PX4-Autopilot/releases/tag/untagged-c09b4e98ea628e4e1fc2

@mrpollo
Copy link
Contributor Author

mrpollo commented Sep 20, 2024

It looks like I was finally able to get it working, here's a test with NO TAG, I forced the creation of a release with no tag

https://github.com/PX4/PX4-Autopilot/releases/tag/untagged-c09b4e98ea628e4e1fc2

@mrpollo mrpollo marked this pull request as ready for review September 21, 2024 05:08
@mrpollo mrpollo requested a review from dagar September 21, 2024 05:08
@mrpollo mrpollo changed the title ci: test release uploads ci: release uploads Sep 21, 2024
@mrpollo mrpollo force-pushed the mrpollo/releases branch 13 times, most recently from adfa4a2 to ba62b35 Compare September 30, 2024 14:23
When you push a version tag (v1.15.0), this workflow will automatically
create a github release (as draft) and upload all the built artifacts
(*.px4 files).

Additionally, you can now also trigger this step manually using the
github actions view URL

https://github.com/PX4/PX4-Autopilot/actions/workflows/build_all_targets.yml
- replaces metadata and deploy workflows
- move ci scripts under Tools/ci
@dagar dagar merged commit 652bb82 into main Oct 4, 2024
57 of 58 checks passed
@dagar dagar deleted the mrpollo/releases branch October 4, 2024 16:38
@mrpollo
Copy link
Contributor Author

mrpollo commented Oct 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants