Skip to content

Commit

Permalink
Update release Action
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee committed Jun 17, 2024
1 parent 1e92848 commit 43ca15c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
- "*"
pull_request:

permissions:
contents: read

env:
RUSTFLAGS: "--cfg uuid_unstable"

Expand Down Expand Up @@ -253,14 +250,22 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Build and publish docs
run: |
pip install -r requirements.txt
make docs_build && make docs_deploy
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
command: upload
args: --skip-existing *

docs:
name: Publish docs
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [release]
steps:
- uses: actions/checkout@v3
- name: Build and publish docs
run: |
pip install -r requirements.txt
make docs_build && make docs_deploy

0 comments on commit 43ca15c

Please sign in to comment.