Python Release #7
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: Python Release | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| tags: | |
| - "python-*" | |
| concurrency: | |
| group: release-${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| permissions: write-all | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v3 | |
| - name: "Setup: Python 3.11" | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install poetry==1.8.3 | |
| - name: Build | |
| run: | | |
| cd src/python | |
| poetry install | |
| poetry build | |
| cat pyproject.toml | |
| ls -la dist | |
| - name: Publish package to TestPyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: src/python/dist | |
| - name: Create GitHub Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: "src/python/dist/*.whl" | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| prerelease: false |