aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-01-18 18:37:50 +0000
committerLouis Pilfold <louis@lpil.uk>2024-01-18 18:53:04 +0000
commit22178107e90a79bca48ff79b70617e04e46c90cc (patch)
tree988e981b9301f3424cfa07d2fb741c8bd7d53ece /.github/workflows
parent840ffc24702ce73a7c237addd63f0bb1d8babb4f (diff)
downloadtour-22178107e90a79bca48ff79b70617e04e46c90cc.tar.gz
tour-22178107e90a79bca48ff79b70617e04e46c90cc.zip
Deploy!
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 3d2429f..64dcff9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -29,3 +29,21 @@ jobs:
cd ..
- run: gleam run
+
+ # Deploy to GitHub pages.
+ # These steps only run for the main branch, each has an `if`.
+
+ - name: Setup Pages
+ uses: actions/configure-pages@v4
+ if: github.ref == 'refs/heads/main'
+
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: 'public'
+ if: github.ref == 'refs/heads/main'
+
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4
+ if: github.ref == 'refs/heads/main'