File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments