From 43ca15c2e620ff0c3a823685d6dc4e64b772b01e Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Mon, 17 Jun 2024 10:27:00 +0200 Subject: [PATCH] Update release Action --- .github/workflows/ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eba5c16..969dcf9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,6 @@ on: - "*" pull_request: -permissions: - contents: read - env: RUSTFLAGS: "--cfg uuid_unstable" @@ -253,10 +250,6 @@ 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: @@ -264,3 +257,15 @@ jobs: 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