Bump prefix-dev/setup-pixi from 0.9.1 to 0.9.2 (#155) #16
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: PyPI packaging and deployment | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [qa, main] | |
| tags: ['v*'] | |
| jobs: | |
| pypi-publish: | |
| name: upload release to PyPI | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # IMPORTANT: this permission is mandatory for trusted publishing | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: prefix-dev/[email protected] | |
| with: | |
| pixi-version: v0.41.4 | |
| manifest-path: pyproject.toml | |
| - name: build pypi package | |
| run: | | |
| # build the package | |
| VERSION=$(pixi run -- versioningit .) | |
| pixi run -- python -m build | |
| # publish your distributions here (need to setup on PyPI first) | |
| - name: Publish package distributions to PyPI | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: pypa/gh-action-pypi-publish@release/v1 |