diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c9695cee..538f6f74 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -16,7 +16,7 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment + # Allow one concurrent deployment concurrency: group: "pages" cancel-in-progress: true @@ -28,29 +28,41 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Node uses: actions/setup-node@v4 with: node-version: "18" + cache: "pnpm" + - name: Install pnpm run: npm install -g pnpm + - name: Install dependencies run: pnpm install - - name: Build with Next.js - run: pnpm run --filter documentation build - - name: Upload artifact + working-directory: ./documentation + + - name: Build Docusaurus site + run: pnpm run build + working-directory: ./documentation + + - name: Upload artifact for deployment uses: actions/upload-pages-artifact@v3 with: path: ./documentation/build # Deployment job deploy: + needs: build + runs-on: ubuntu-latest environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + - name: Print page URL + run: echo "Deployed to ${PAGES_URL}" + env: + PAGES_URL: ${{ steps.deployment.outputs.page_url }}