From b847b87823dfd7e1b7870c67ea32199bc607f852 Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Wed, 18 Dec 2024 20:17:41 -0500 Subject: Enable github actions Moved personal blog to be built in this tree. Also enables github actions to host the site on pages. --- .github/workflows/blog.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/blog.yaml (limited to '.github/workflows/blog.yaml') diff --git a/.github/workflows/blog.yaml b/.github/workflows/blog.yaml new file mode 100644 index 0000000..fc2c444 --- /dev/null +++ b/.github/workflows/blog.yaml @@ -0,0 +1,39 @@ +name: Deploy Blog + +on: + push: + branches: + - master + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - uses: actions/checkout@v4 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + + - name: Build blog + run: nix build .#depot.web.blog + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "result" + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 -- cgit v1.3.1