Skip to content

Commit

Permalink
enable pypi publishing github action
Browse files Browse the repository at this point in the history
  • Loading branch information
TyberiusPrime committed Aug 19, 2024
1 parent 9bcf397 commit 842adc2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release

on:
release:

jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: PyO3/maturin-action@v1
with:
manylinux: auto
command: build
args: --release -o dist --sdist
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist


release:
name: Release
runs-on: ubuntu-latest
needs: [ linux ]
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: messense/maturin-action@v1
with:
command: upload
args: --skip-existing *
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.12,<0.13"]
requires = ["maturin>=1.7"]
build-backend = "maturin"

[project]
Expand Down

0 comments on commit 842adc2

Please sign in to comment.