Repository navigation
docs: record v3.8.0 integration and extended workload validation #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: Publish to PyPI | |
| on: | |
| push: | |
| tags: ["v*"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| release-metadata: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Verify tag, package version, changelog and main ancestry | |
| env: | |
| RELEASE_TAG: ${{ github.ref_name }} | |
| run: python tests/verify_release.py --tag "$RELEASE_TAG" --require-main | |
| validation: | |
| needs: release-metadata | |
| uses: ./.github/workflows/ci.yml | |
| publish: | |
| needs: [release-metadata, validation] | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| id-token: write | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/project/visqol-python/ | |
| steps: | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: Publish the distributions already tested by CI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| github-release: | |
| needs: publish | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: Create GitHub Release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| RELEASE_TAG: ${{ github.ref_name }} | |
| RELEASE_REPOSITORY: ${{ github.repository }} | |
| run: | | |
| gh release create "$RELEASE_TAG" dist/* \ | |
| --repo "$RELEASE_REPOSITORY" \ | |
| --title "Release $RELEASE_TAG" --generate-notes |