Release on GitHub & PyPI #8
Workflow file for this run
This file contains hidden or 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: Release on GitHub & PyPI | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| ref: ${{ github.ref_name }} | |
| # we can add other gpg keys here, just discuss about this with me :) | |
| - run: curl https://github.com/nim65s.gpg | gpg --import | |
| - name: validate signature | |
| run: > | |
| git verify-tag --raw ${{ github.ref_name }} 2>&1 | |
| | grep -q 'VALIDSIG 9B1A79065D2F2B806C8A5A1C7D2ACDAF4653CF28' | |
| - run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
| - uses: astral-sh/setup-uv@v9.0.0 | |
| - run: uv --directory v2/scripts build | |
| - name: Publish package distributions to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| skip-existing: true | |
| packages-dir: v2/scripts/dist |