summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorseth <[email protected]>2023-03-17 07:37:47 -0400
committerseth <[email protected]>2023-03-17 07:39:55 -0400
commit74e5fd4f4d0bf40cb682ff48973fdd41d86f747b (patch)
treeee3152111bb1d006933b4fda015303af053e7d68 /.github/workflows
initial commit
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/deploy.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
new file mode 100644
index 0000000..77ed4be
--- /dev/null
+++ b/.github/workflows/deploy.yaml
@@ -0,0 +1,40 @@
+name: deploy to gh pages
+
+on:
+ push:
+ branches: [main]
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: setup deno
+ uses: denoland/setup-deno@v1
+ with:
+ deno-version: v1.31.3
+
+ - name: build site
+ run: |
+ sed "s/commit:/commit: $GITHUB_SHA/" _includes/layouts/base.njk
+ deno task build
+
+ - name: setup pages
+ uses: actions/configure-pages@v3
+
+ - name: upload artifact
+ uses: actions/upload-pages-artifact@v1
+ with:
+ path: '_site'
+
+ - name: deploy
+ id: deployment
+ uses: actions/deploy-pages@v1 \ No newline at end of file