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

Upload artifact after pushing to main #122

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sebastiaanspeck
Copy link
Contributor

Could be used like a pre-release or for ease to not need to rebuild locally after a fix has been pushed to 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
@louis-e
Copy link
Owner

louis-e commented Jan 3, 2025

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

@sebastiaanspeck
Copy link
Contributor Author

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

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'
Copy link
Contributor Author

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'.

@sebastiaanspeck sebastiaanspeck changed the title Upload artifact after building Upload artifact after pushing to main Jan 3, 2025
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