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

Add pypi/release/create action #205

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

mikealfare
Copy link
Contributor

Description

Publish build artifacts to PyPI. Supports local artifacts in /dist or a GitHub archive.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue

Copy link
Member

@emmyoop emmyoop left a 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 == '') }}
Copy link
Member

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"
Copy link
Member

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/

Copy link
Member

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.

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