summaryrefslogtreecommitdiff
path: root/.github/workflows/blog.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/blog.yaml')
-rw-r--r--.github/workflows/blog.yaml39
1 files changed, 39 insertions, 0 deletions
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