Release: chore(release): 0.9.1 (#211) Signed-off-by: client-software-ci <[email protected]> #19
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: Publish" | |
| run-name: "Release: ${{ github.event.head_commit.message || inputs.tag }}" | |
| on: | |
| push: | |
| branches: | |
| - mainline | |
| paths: | |
| - CHANGELOG.md | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| required: true | |
| type: string | |
| description: Specify a tag to re-run a release. | |
| concurrency: | |
| group: release | |
| permissions: | |
| contents: read | |
| jobs: | |
| TagRelease: | |
| uses: OpenJobDescription/.github/.github/workflows/reusable_tag_release.yml@mainline | |
| secrets: inherit | |
| with: | |
| tag: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || '' }} | |
| UnitTests: | |
| name: Unit Tests | |
| needs: TagRelease | |
| uses: ./.github/workflows/code_quality.yml | |
| with: | |
| tag: ${{ needs.TagRelease.outputs.tag }} | |
| PreRelease: | |
| needs: [TagRelease, UnitTests] | |
| uses: OpenJobDescription/.github/.github/workflows/reusable_prerelease.yml@mainline | |
| permissions: | |
| id-token: write | |
| contents: write | |
| secrets: inherit | |
| with: | |
| tag: ${{ needs.TagRelease.outputs.tag }} | |
| Release: | |
| needs: [TagRelease, PreRelease] | |
| uses: OpenJobDescription/.github/.github/workflows/reusable_release.yml@mainline | |
| secrets: inherit | |
| permissions: | |
| id-token: write | |
| contents: write | |
| with: | |
| tag: ${{ needs.TagRelease.outputs.tag }} | |
| Publish: | |
| needs: [TagRelease, Release] | |
| uses: OpenJobDescription/.github/.github/workflows/reusable_publish_python.yml@mainline | |
| permissions: | |
| id-token: write | |
| secrets: inherit | |
| with: | |
| tag: ${{ needs.TagRelease.outputs.tag }} | |
| # PyPI does not support reusable workflows yet | |
| # # See https://github.com/pypi/warehouse/issues/11096 | |
| PublishToPyPI: | |
| needs: [TagRelease, Publish] | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ needs.TagRelease.outputs.tag }} | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.9' | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade hatch | |
| - name: Build | |
| run: hatch -v build | |
| # # See https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-pypi | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |