fix(workflow): π let auto tiling target the segment GPU's VRAM (#27) #15
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate changelog | |
| uses: orhun/git-cliff-action@v4 | |
| id: cliff | |
| with: | |
| config: cliff.toml | |
| args: --latest --strip header | |
| env: | |
| # Lets git-cliff resolve commit authors to GitHub handles/avatars. | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| body: ${{ steps.cliff.outputs.content }} | |
| pypi: | |
| needs: release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # OIDC token for PyPI trusted publishing (no API token) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Build sdist and wheel | |
| run: pipx run build | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| # Rebuild the org-wide pdoc apidocs site so it picks up the new version. | |
| apidocs: | |
| needs: release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger imcf.github.io apidocs rebuild | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| # Fine-grained PAT with "Contents: write" on imcf/imcf.github.io, | |
| # stored as the APIDOCS_DISPATCH_TOKEN secret in this repo. | |
| token: ${{ secrets.APIDOCS_DISPATCH_TOKEN }} | |
| repository: imcf/imcf.github.io | |
| event-type: dispatch-event |