Publish to PyPI #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to PyPI | |
on: | |
workflow_run: | |
workflows: ["Build and Release"] | |
types: | |
- completed | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Hatch | |
run: pip install hatch | |
- name: Build | |
run: hatch build | |
# - name: Download build artifact - can't get this to work | |
# uses: actions/download-artifact@v4 | |
# with: | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
# name: dist | |
# path: ./dist/ | |
- name: Publish | |
uses: pypa/[email protected] |