Skip to content

Commit aeccd4e

Browse files
Add GitHub Actions to deploy to GitHub Pages
Moving off Netlify to simplify infrastructure
1 parent 3ad76d2 commit aeccd4e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Deploy
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "main"
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: ruby/setup-ruby@v1
17+
with:
18+
bundler-cache: true
19+
- run: make build
20+
- uses: actions/upload-pages-artifact@v3
21+
id: upload-artifact
22+
with:
23+
path: "_site/"
24+
25+
deploy:
26+
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
27+
environment:
28+
name: github-pages
29+
runs-on: ubuntu-latest
30+
needs: build
31+
permissions:
32+
pages: write
33+
id-token: write
34+
steps:
35+
- uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)