Skip to content

Commit

Permalink
Fix release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminrwilson committed Feb 27, 2024
1 parent bcde90f commit db04504
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,34 +97,39 @@ jobs:
name: wheels
path: dist

# test_release:
# name: Test release.
# needs: [linux, windows, macos, sdist]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: wheels
# path: dist
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
test_release:
name: Release
runs-on: ubuntu-latest
environment: release
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, macos, sdist]
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
with:
command: upload
args: --skip-existing *
repository-url: https://test.pypi.org/legacy/

release:
name: Release
runs-on: ubuntu-latest
environment: release
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, macos, sdist]
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *

0 comments on commit db04504

Please sign in to comment.