From ac2f93ff565677e9336dece8f1a61e15711851a0 Mon Sep 17 00:00:00 2001 From: tnichols217 <62992267+tnichols217@users.noreply.github.com> Date: Sun, 28 Sep 2025 23:14:46 -0400 Subject: [PATCH] add github pages runner (#3) * add github pages runner * clean old script --- .github/workflows/build.yml | 15 ++++++++++++++- build.sh | 3 --- 2 files changed, 14 insertions(+), 4 deletions(-) delete mode 100755 build.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c511ee4..bbc5a95 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,20 @@ jobs: - name: Build Project shell: bash 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 with: artifacts: "result/pdf/*,result/*.tar.gz" diff --git a/build.sh b/build.sh deleted file mode 100755 index e3f61a8..0000000 --- a/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -nix build --experimental-features "nix-command flakes" .#deploy \ No newline at end of file