diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index fa755dba..92a714cc 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -156,11 +156,11 @@ jobs: retention-days: 7 - name: Deploy - if: github.event_name == 'push' && contains(github.ref, 'refs/tags') && matrix.image-tag == 'latest' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'dev') && matrix.image-tag == 'latest' uses: JamesIves/github-pages-deploy-action@4.1.4 with: repository-name: pyansys/pyfluent-visualization-docs - token: ${{ secrets.DOC_DEPLOYMENT_PAT }} + token: ${{ steps.get_workflow_token.outputs.token }} BRANCH: gh-pages FOLDER: doc/_build/html CLEAN: true