diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index d1a8a7a..297b0dc 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -2,7 +2,6 @@ name: Deploy docs to GitHub Pages on: push: - branches: ['main'] tags: ['v**'] workflow_dispatch: @@ -17,7 +16,7 @@ permissions: contents: write concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: 'pages' jobs: deploy: @@ -39,11 +38,14 @@ jobs: npm run docs - name: Deploy + if: startsWith(github.ref, 'refs/tags/v') uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: docs destination_dir: ${{ github.ref_name }} + user_name: 'GitHub Actions' + user_email: '41898282+github-actions[bot]@users.noreply.github.com' - name: Deploy for the latest release if: startsWith(github.ref, 'refs/tags/v') || inputs.set-latest @@ -52,3 +54,5 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: docs destination_dir: latest + user_name: 'GitHub Actions' + user_email: '41898282+github-actions[bot]@users.noreply.github.com'