-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add pypi/release/create
action
#205
base: main
Are you sure you want to change the base?
Conversation
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.
This makes sense as an action but is missing functionality.
echo index-url : ${{ inputs.index-url }} | ||
|
||
- name: "Download release artifacts from `${{ inputs.archive-name }}`" | ||
if: ${{ !(inputs.archive-name == '') }} |
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.
Why continue if there are no artifacts?
shell: bash | ||
run: echo $(ls ./dist) | ||
|
||
- name: "Publish artifacts to PyPI" |
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.
This also needs an environment if we're using Trusted Publisher (which we should)
with: | ||
repository-url: ${{ inputs.index-url }} | ||
packages-dir: dist/ | ||
|
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.
We should also validate the package successfully uploaded. Otherwise it's not really done.
Description
Publish build artifacts to PyPI. Supports local artifacts in
/dist
or a GitHub archive.Checklist