File tree Expand file tree Collapse file tree 3 files changed +53
-2
lines changed
Expand file tree Collapse file tree 3 files changed +53
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : ["main"] # Triggers on merge/push to main
6+
7+ permissions :
8+ contents : read
9+ pages : write # Required to deploy to Pages
10+ id-token : write # Required for authentication
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Node
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : " 24"
23+
24+ - name : Install yarn
25+ run : npm install --global yarn
26+
27+ - name : Install dependencies
28+ run : yarn install
29+
30+ - name : Setup Pages
31+ uses : actions/configure-pages@v4
32+
33+ - name : Build
34+ run : yarn build # Replace with your actual build command
35+
36+ - name : Upload artifact
37+ uses : actions/upload-pages-artifact@v3
38+ with :
39+ path : " ./dist" # Point this to your build output folder (e.g., './dist')
40+
41+ deploy :
42+ needs : build # This 'imports' the result of the build job
43+ runs-on : ubuntu-latest
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+ steps :
48+ - name : Deploy to GitHub Pages
49+ id : deployment
50+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -22,4 +22,6 @@ npm-debug.log*
2222yarn-debug.log *
2323yarn-error.log *
2424
25- old
25+ old
26+
27+ dist /
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ yarn start
4747
4848## TODO:
4949
50- - mobile layout (diff font size; single column layout, tags in column div)
5150- gha for deploys on merge to main
5251
5352- add Sheares!
You can’t perform that action at this time.
0 commit comments