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

Create a reusable workflow for Python package publishing #9

Open
woodruffw opened this issue Jan 20, 2023 · 0 comments
Open

Create a reusable workflow for Python package publishing #9

woodruffw opened this issue Jan 20, 2023 · 0 comments

Comments

@woodruffw
Copy link
Member

This is a prime candidate for a reusable workflow, since it boils down to:

      - uses: actions/checkout@v3

      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: '3.x'

      - name: Build distributions
        run: make dist

      - name: Publish a Python distribution to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          password: ${{ secrets.PYPI_TOKEN }}

This flow will be even nicer when PyPI supports reusable workflows for publishing, which is something we're working on.

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

No branches or pull requests

1 participant