diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index e4f552c..883570a 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -9,6 +9,8 @@ on: branches: - master +concurrency: preview-${{ github.ref }} + jobs: build: name: Build Docusaurus @@ -67,6 +69,8 @@ jobs: uses: actions/deploy-pages@v4 deploy-preview: + name: "Deploy Preview for PR #${{github.event.pull_request.number}}" + if: github.event_name == 'pull_request' # Only run for pull requests runs-on: ubuntu-latest # Grant GITHUB_TOKEN the permissions required to make a Pages deployment permissions: @@ -92,7 +96,6 @@ jobs: version: 10.11.0 - name: Install and Build - if: github.event_name == 'pull_request' # Only preview on PR run: | pnpm install pnpm run build