chore: release 0.10.0 #36
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 and PyPI Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| environment: release | |
| concurrency: release | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.ADMIN_TOKEN }} | |
| - name: Check if should skip | |
| id: check_skip | |
| run: | | |
| if [ "$(git log -1 --pretty=format:'%an')" = "semantic-release" ]; then | |
| echo "skip=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Python Semantic Release | |
| if: steps.check_skip.outputs.skip != 'true' | |
| id: release | |
| uses: python-semantic-release/python-semantic-release@7b3f71697ccfbaef884e1e754b6364e974b134cf # v9.15.2 | |
| with: | |
| github_token: ${{ secrets.ADMIN_TOKEN }} | |
| - name: Verify the public distribution boundary | |
| if: steps.check_skip.outputs.skip != 'true' && steps.release.outputs.released == 'true' | |
| run: python scripts/check_source_boundary.py --require-dist | |
| - name: Publish to PyPI | |
| if: steps.check_skip.outputs.skip != 'true' && steps.release.outputs.released == 'true' | |
| uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1 | |
| - name: Publish to GitHub Releases | |
| if: steps.check_skip.outputs.skip != 'true' && steps.release.outputs.released == 'true' | |
| uses: python-semantic-release/publish-action@b9c41d4b0754dee5a6c7188d42b33f66e3a8aafd # v9.15.2 | |
| with: | |
| github_token: ${{ secrets.ADMIN_TOKEN }} |