v0.5.1 — fused GEMM+energy kernel (per-pair) #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: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - run: pip install build | |
| - run: python -m build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| publish-pypi: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| # Only publish stable releases (v1.2.3), not pre-releases (v1.2.3-rc1) | |
| if: ${{ !contains(github.event.release.tag_name, '-') }} | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/project/trnblas/ | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - uses: pypa/gh-action-pypi-publish@release/v1 | |
| publish-testpypi: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| # Only publish pre-releases to TestPyPI | |
| if: ${{ contains(github.event.release.tag_name, '-') }} | |
| environment: | |
| name: testpypi | |
| url: https://test.pypi.org/project/trnblas/ | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| repository-url: https://test.pypi.org/legacy/ |