Add changelog entry for v1.3.1 (#32) #11
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: Deploy | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: ["v*"] | |
| jobs: | |
| conda-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up pixi | |
| uses: prefix-dev/setup-pixi@v0.9.3 | |
| with: | |
| pixi-version: v0.48.1 | |
| - name: Build and Publish Conda Package | |
| env: | |
| ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
| run: | | |
| pixi run conda-publish | |
| pypi-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up pixi | |
| uses: prefix-dev/setup-pixi@v0.9.3 | |
| with: | |
| pixi-version: v0.48.1 | |
| - name: Build and Publish PyPI Package | |
| env: | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
| run: | | |
| pixi run build-pypi | |
| # Only publish to PyPI if token is available | |
| if [ -n "$TWINE_PASSWORD" ]; then | |
| echo "PyPI token found, publishing to PyPI..." | |
| pixi run pypi-publish | |
| else | |
| echo "No PyPI token found, skipping PyPI publishing" | |
| fi |