From 266b67979ec0ce71a8a68cf06250ee1545d272a9 Mon Sep 17 00:00:00 2001 From: tnichols217 <62992267+tnichols217@users.noreply.github.com> Date: Sun, 28 Sep 2025 23:41:01 -0400 Subject: [PATCH] Fix: Github Pages (#4) * add pages premission --- .github/workflows/build.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bbc5a95..364d8bc 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,8 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + id-token: write + pages: write steps: - name: Checkout uses: actions/checkout@v3 @@ -18,26 +20,21 @@ jobs: shell: bash run: | nix build --experimental-features "nix-command flakes" .#book + mkdir -p ./site + cp -rL ./result/* ./site - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: "./result" + path: "./site" - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - - name: Build Project + - name: Build Project 2 shell: bash run: | nix build --experimental-features "nix-command flakes" .#deploy - uses: ncipollo/release-action@v1 with: - artifacts: "result/pdf/*,result/*.tar.gz" - # - name: Upload artifact - # uses: actions/upload-pages-artifact@v3 - # with: - # path: "result/site" - # - name: Deploy to GitHub Pages - # id: deployment - # uses: actions/deploy-pages@v4 \ No newline at end of file + artifacts: "result/pdf/*,result/*.tar.gz" \ No newline at end of file