Skip to content

Commit 979371e

Browse files
committed
github pages deployment (not tested)
1 parent 6180753 commit 979371e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Github Pages documentation is bad, so I had to follow a couple guides:
2+
# - https://www.geeksforgeeks.org/git/github-pages/
3+
# - https://docs.github.com/en/actions/tutorials/build-and-test-code/nodejs
4+
# - https://github.com/peaceiris/actions-gh-pages
5+
6+
name: Github Pages CI
7+
8+
on:
9+
push:
10+
branches: [ "master" ]
11+
pull_request:
12+
branches: [ "master" ]
13+
14+
workflow_dispatch:
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
node-version: ['20.x']
22+
23+
steps:
24+
- uses: actions/checkout@v5
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
- run: npm install
30+
- run: npm run build
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v4
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./public
36+

0 commit comments

Comments
 (0)