name: Docs on: push: branches: [main] workflow_dispatch: concurrency: group: pages cancel-in-progress: false permissions: contents: read jobs: build: name: Build static site runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: pnpm/action-setup@v6 - uses: actions/setup-node@v7 with: node-version-file: .nvmrc cache: pnpm - uses: actions/configure-pages@v6 - run: pnpm install --frozen-lockfile - name: Build docs # Served from the root of tracklane.codar.me, so no base path. The # `public/CNAME` file is what tells Pages which domain this is. run: pnpm build --filter=tracklane-docs... env: # A repository variable, not a secret: a measurement id is public by # construction, and it ships inside the page. Absent in forks, where # the site builds with no destinations rather than into this property. NEXT_PUBLIC_GA4_ID: ${{ vars.NEXT_PUBLIC_GA4_ID }} - uses: actions/upload-pages-artifact@v5 with: path: apps/docs/out deploy: name: Deploy to GitHub Pages needs: build runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} permissions: pages: write id-token: write steps: - id: deployment uses: actions/deploy-pages@v5