bump to 1.6.1 #37
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: Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "*" | |
| jobs: | |
| call-tests: | |
| if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
| uses: "./.github/workflows/tests.yaml" | |
| build_and_deploy_artifact: | |
| if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
| needs: call-tests | |
| runs-on: ubuntu-latest | |
| env: | |
| PYTHON_VERSION: 3.11 | |
| environment: | |
| name: release | |
| url: https://upload.pypi.org/legacy/ | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| #---------------------------------------------- | |
| # check-out repo and set-up python and uv | |
| #---------------------------------------------- | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python and uv | |
| uses: ./.github/actions/setup | |
| #---------------------------------------------- | |
| # install dependencies | |
| #---------------------------------------------- | |
| - name: Install dependencies | |
| uses: ./.github/actions/install | |
| #---------------------------------------------- | |
| # build artifact | |
| #---------------------------------------------- | |
| - name: Build artifact | |
| run: uv build | |
| #---------------------------------------------- | |
| # upload to PyPi | |
| #---------------------------------------------- | |
| - name: Publish artifact to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| repository-url: https://upload.pypi.org/legacy/ | |
| #---------------------------------------------- | |
| # create Github release | |
| #---------------------------------------------- | |
| - name: Create Github release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| tag: ${{ github.ref_name }} | |
| run: | | |
| gh release create "$tag" \ | |
| --repo="$GITHUB_REPOSITORY" \ | |
| --title="$tag" \ | |
| --generate-notes | |