-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Upload artifact after pushing to main #122
base: main
Are you sure you want to change the base?
Conversation
Could be used like a pre-release or for ease to not need to rebuild locally after a fix has been pushed to main
Sounds like a good idea, however according to the ci-build.yml logic, will this also upload a new artifact each time a pull request CI starts running? :D arnis/.github/workflows/ci-build.yml Line 5 in 7d0d186
|
That's true.. we can add an if-statement I believe to check for the GH Action trigger |
@@ -38,3 +38,10 @@ jobs: | |||
|
|||
- name: Build | |||
run: cargo build --release | |||
|
|||
- name: Upload artifact | |||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also be only github.ref == 'refs/heads/main'
.
Could be used like a pre-release or for ease to not need to rebuild locally after a fix has been pushed to main