--- name: "Pages" on: push: branches: - stable - trunk workflow_dispatch: jobs: pre-job: continue-on-error: true runs-on: ubuntu-latest outputs: should_skip: ${{ steps.skip_check.outputs.should_skip }} steps: - id: skip_check uses: fkirc/skip-duplicate-actions@v5 deploy: runs-on: ubuntu-latest environment: name: production url: https://wire.althaea.zone/ if: github.actor != 'dependabot[bot]' && needs.pre-job.outputs.should_skip != 'true' steps: - uses: actions/checkout@v6 - uses: ./.github/actions/setup-nix - run: nix build .#docs if: github.ref == 'refs/heads/stable' - run: nix build .#docs-unstable if: github.ref != 'refs/heads/stable' - name: Deploy to Cloudflare Pages id: deployment uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy ./result/ --project-name wire-docs