Fix: Github Pages (#4)

* add pages premission
This commit is contained in:
tnichols217 2025-09-28 23:41:01 -04:00 committed by GitHub
parent ac2f93ff56
commit 266b67979e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
id-token: write
pages: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -18,26 +20,21 @@ jobs:
shell: bash shell: bash
run: | run: |
nix build --experimental-features "nix-command flakes" .#book nix build --experimental-features "nix-command flakes" .#book
mkdir -p ./site
cp -rL ./result/* ./site
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v5 uses: actions/configure-pages@v5
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
path: "./result" path: "./site"
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4
- name: Build Project - name: Build Project 2
shell: bash shell: bash
run: | run: |
nix build --experimental-features "nix-command flakes" .#deploy nix build --experimental-features "nix-command flakes" .#deploy
- uses: ncipollo/release-action@v1 - uses: ncipollo/release-action@v1
with: with:
artifacts: "result/pdf/*,result/*.tar.gz" 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