add github pages runner (#3)

* add github pages runner

* clean old script
This commit is contained in:
tnichols217 2025-09-28 23:14:46 -04:00 committed by GitHub
parent 456fd72ee7
commit ac2f93ff56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 4 deletions

View File

@ -17,7 +17,20 @@ jobs:
- name: Build Project - name: Build Project
shell: bash shell: bash
run: | run: |
sh build.sh nix build --experimental-features "nix-command flakes" .#book
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./result"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Build Project
shell: bash
run: |
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"

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
nix build --experimental-features "nix-command flakes" .#deploy