Skip to content

Commit

Permalink
Add a publish to pypi action
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Oct 31, 2024
1 parent 5765bf3 commit 765039b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish To PyPI

on:
push:
tags:
- '**[0-9]+.[0-9]+.[0-9]+*'
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
publish-pypi:
name: Publish to pypi.org
runs-on: ubuntu-latest
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-*

0 comments on commit 765039b

Please sign in to comment.