-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore(ci): Fix python release cycle #297
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,11 +95,15 @@ jobs: | |
- name: Test | ||
working-directory: py/tests | ||
run: python3 -m pytest | ||
- name: Display structure of dist directory | ||
run: ls -R dist | ||
- name: Upload wheels | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheels | ||
# Ensure we have a different name for every artifact, by using the | ||
# matrix components in the artifact name | ||
name: binary-${{ matrix.type }}-${{ matrix.os }}-${{ matrix.python-version }} | ||
path: dist | ||
|
||
release: | ||
|
@@ -111,7 +115,11 @@ jobs: | |
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: wheels | ||
pattern: binary-* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should be more specific here to prevent downloading artifacts from the non-tag workflow run. I'm unsure what would happen to the duplicates if we do it like this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My understanding of Github Artifacts is that artifacts are shared within a workflow, but not across workflows - so that while the branch workflow and tag workflow might have artifacts with the same name, they would not be able to see each other. From the docs:
See also the |
||
# Download them all into the current directory | ||
merge-multiple: true | ||
- name: Display available artifacts | ||
run: ls -R . | ||
- name: Publish to GitHub release page | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
|
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.
I think we should at least include something that is different for tag and branch jobs.
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.
See above - as I understand it, tag and branch jobs would be in different workflows, and would not have access to each others' artifacts without specifically specifying a
run-id
and adding aGITHUB_TOKEN
to the action. Does that make sense? Am I missing something?