Files for my website bwc9876.dev
at main 42 lines 823 B view raw
1name: Deploy To GitHub Pages 2 3on: 4 workflow_dispatch: 5 push: 6 branches: [main] 7 8permissions: 9 contents: read 10 pages: write 11 id-token: write 12 13jobs: 14 build: 15 runs-on: "ubuntu-latest" 16 steps: 17 - name: Checkout 18 uses: actions/checkout@v5 19 20 - uses: cachix/install-nix-action@v31 21 with: 22 github_access_token: ${{ secrets.GITHUB_TOKEN }} 23 24 - name: Nix Build 25 run: nix build .# 26 27 - name: Upload Site 28 id: deployment 29 uses: actions/upload-pages-artifact@v4 30 with: 31 path: result/ 32 33 deploy: 34 needs: build 35 runs-on: ubuntu-latest 36 environment: 37 name: github-pages 38 url: ${{ steps.deployment.outputs.page_url }} 39 steps: 40 - name: Deploy to GitHub Pages 41 id: deployment 42 uses: actions/deploy-pages@v4