File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : false
16+
17+ env :
18+ BUNDLE_WITHOUT : " development"
19+
20+ jobs :
21+ build :
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v4
26+
27+ - name : Setup Ruby
28+ uses : ruby/setup-ruby@v1
29+ with :
30+ ruby-version : " 3.4"
31+ bundler-cache : true
32+
33+ - name : Setup Node
34+ uses : actions/setup-node@v4
35+ with :
36+ node-version : " 24"
37+ cache : " npm"
38+
39+ - name : Install Node dependencies
40+ run : npm ci
41+
42+ - name : Build frontend
43+ run : npm run esbuild
44+
45+ - name : Build site
46+ run : bin/bridgetown build
47+ env :
48+ BRIDGETOWN_ENV : production
49+
50+ - name : Upload artifact
51+ uses : actions/upload-pages-artifact@v3
52+ with :
53+ path : output
54+
55+ deploy :
56+ environment :
57+ name : github-pages
58+ url : ${{ steps.deployment.outputs.page_url }}
59+ runs-on : ubuntu-latest
60+ needs : build
61+ steps :
62+ - name : Deploy to GitHub Pages
63+ id : deployment
64+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments