Skip to content

Commit

Permalink
Move pypi publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 8, 2025
1 parent d4f5e19 commit b15baa8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 28 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags: "*"
workflow_dispatch:

permissions:
contents: read

jobs:
macos:
name: macOS Wheels (universal2)
Expand Down Expand Up @@ -95,3 +98,24 @@ jobs:
with:
name: wheels
path: dist

publish-pypi:
name: Publish to pypi.org
runs-on: ubuntu-latest
needs:
- sdist
- windows
- linux
- macos
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
if: ${{ !github.event.pull_request }}
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
with:
command: upload
args: --non-interactive --skip-existing minijinja-*
28 changes: 0 additions & 28 deletions .github/workflows/publish-pypi.yml

This file was deleted.

0 comments on commit b15baa8

Please sign in to comment.