Skip to content

Commit

Permalink
split build and deploy ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Dec 1, 2023
1 parent 1235686 commit 71959bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on: ["push"]

permissions:
contents: read
id-token: write

jobs:
build-and-publish:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -44,6 +43,21 @@ jobs:
- run: maturin build --release ${{ matrix.args }}

- uses: actions/upload-artifact@v3
with:
name: dist
path: target/wheels/

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: dist
path: target/wheels
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# pdoc-pyo3-sample-library

This is a sample PyO3 library used for testing [pdoc](https://pdoc.dev/)
This is a sample PyO3 library used for testing [pdoc](https://pdoc.dev/).

0 comments on commit 71959bc

Please sign in to comment.