diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4102a53f..13b7881e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -34,6 +34,7 @@ jobs: path: docs/build deploy-docs: + if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' needs: build-docs permissions: pages: write @@ -42,7 +43,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest - if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' steps: - - uses: actions/deploy-pages@v4 + - name: Deploy to GitHub Pages id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e00f99e8..d0e076cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ on: jobs: publish-github-release: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v3