ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
at stable 41 lines 1.3 kB view raw
1--- 2name: "Pages" 3on: 4 push: 5 branches: 6 - stable 7 - trunk 8 workflow_dispatch: 9jobs: 10 pre-job: 11 continue-on-error: true 12 runs-on: ubuntu-latest 13 permissions: {} 14 outputs: 15 should_skip: ${{ steps.skip_check.outputs.should_skip }} 16 steps: 17 - id: skip_check 18 uses: fkirc/skip-duplicate-actions@04a1aebece824b56e6ad6a401d015479cd1c50b3 19 deploy: 20 runs-on: ubuntu-latest 21 permissions: {} 22 environment: 23 name: production 24 url: https://wire.althaea.zone/ 25 if: github.actor != 'dependabot[bot]' && needs.pre-job.outputs.should_skip != 'true' 26 steps: 27 - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 28 with: 29 persist-credentials: false 30 - uses: ./.github/actions/setup-nix 31 - run: nix build .#docs 32 if: github.ref == 'refs/heads/stable' 33 - run: nix build .#docs-unstable 34 if: github.ref != 'refs/heads/stable' 35 - name: Deploy to Cloudflare Pages 36 id: deployment 37 uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 38 with: 39 apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} 40 accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} 41 command: pages deploy ./result/ --project-name wire-docs