aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-01-18 19:07:00 +0000
committerGitHub <noreply@github.com>2024-01-18 19:07:00 +0000
commit0b87a1b3a7a36968f2520ecbd0ef658cc812f368 (patch)
treeb441db9d39c9524688d479c5a364146434251a2f
parent1ead92d1d8c332f6800490b25f7f8e63d6ef5bd3 (diff)
downloadtour-0b87a1b3a7a36968f2520ecbd0ef658cc812f368.tar.gz
tour-0b87a1b3a7a36968f2520ecbd0ef658cc812f368.zip
Deploy
-rw-r--r--.github/workflows/deploy.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..7d4eb55
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,40 @@
+name: deploy
+on:
+ push:
+ branches: ["main"]
+
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: "pages"
+ cancel-in-progress: false
+
+jobs:
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Download WASM version of Gleam compiler
+ run: ./bin/download-compiler
+ - name: Build site
+ run: gleam run
+
+ - name: Setup Pages
+ uses: actions/configure-pages@v4
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: 'public'
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4