diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index f49233e..0cd3990 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -1,4 +1,4 @@ -name: Running deployment of documentation to gh-pages +name: Deploy documentation to GitHub Pages on: push: @@ -7,15 +7,18 @@ on: permissions: contents: read + pages: read + +concurrency: + group: pages + cancel-in-progress: false jobs: - run-documentation: - name: Run documentation + build: + name: Build documentation runs-on: ubuntu-latest - permissions: - contents: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - uses: pnpm/action-setup@v6 name: Install pnpm @@ -23,22 +26,39 @@ jobs: version: 11.2.2 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: .nvmrc - cache: pnpm - cache-dependency-path: pnpm-lock.yaml + package-manager-cache: false - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Run documentation create + - name: Generate documentation run: pnpm run docusaurus:generate - - name: Run docusaurus build + - name: Build documentation run: pnpm run docusaurus:build - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4 + - name: Configure GitHub Pages + uses: actions/configure-pages@v5 + + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v4 with: - folder: build # The folder the action should deploy. + path: build + + deploy: + name: Deploy documentation + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy GitHub Pages + id: deployment + uses: actions/deploy-pages@v4