Skip to content

Commit

Permalink
ci: publish via pypa/gh-action-pypi-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Aug 20, 2024
1 parent 2ed2723 commit cdb6a3a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -578,17 +578,14 @@ jobs:
pypi_publish_taplo_cli:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/release-taplo-cli-0')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/release-taplo-cli-0')
needs: pypi_test_taplo_cli
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
path: wheels
path: dist
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing wheels/*
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit cdb6a3a

Please sign in to comment.