diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 4ff79064..4a72e273 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -72,7 +72,7 @@ jobs: name: "Deploy development documentation" runs-on: ubuntu-latest needs: [doc-build] - if: github.event_name == 'push' + if: github.ref == 'refs/heads/main' steps: - uses: pyansys/actions/doc-deploy-dev@v4 with: @@ -174,3 +174,16 @@ jobs: with: files: installer/*.exe generate_release_notes: true + + doc-deploy-release: + name: Upload release documentation + if: github.event_name == 'push' && contains(github.ref, 'refs/tags') + runs-on: ubuntu-latest + needs: [release] + steps: + - name: Deploy the stable documentation + uses: pyansys/actions/doc-deploy-stable@v4 + with: + cname: ${{ env.DOCUMENTATION_CNAME }} + token: ${{ secrets.GITHUB_TOKEN }} + python-version: ${{ env.MAIN_PYTHON_VERSION }}