File tree Expand file tree Collapse file tree 1 file changed +25
-22
lines changed Expand file tree Collapse file tree 1 file changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -2,30 +2,33 @@ name: Publish Website
22
33on :
44 push :
5- branches : # triggers on any push to master
6- - main
5+ branches :
6+ - master
77
88jobs :
99 build-deploy :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v1
13- - run : node --version
14- - name : Cache node modules
15- uses : actions/cache@v1
16- with :
17- path : ~/.npm
18- key : ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
19- restore-keys : |
20- ${{ runner.os }}-npm-
21- - name : Install dependencies
22- run : npm ci
23- - name : Test
24- run : npm run test --if-present
25- - name : Build
26- run : npm run build --if-present
27- - name : Deploy
28- uses : peaceiris/actions-gh-pages@v3
29- with :
30- github_token : ${{ secrets.GITHUB_TOKEN }}
31- publish_dir : ./dist
12+ - name : Checkout code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Node.js
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : 18
19+ cache : ' npm'
20+
21+ - name : Install dependencies
22+ run : npm ci
23+
24+ - name : Test
25+ run : npm run test --if-present
26+
27+ - name : Build
28+ run : npm run build --if-present
29+
30+ - name : Deploy to GitHub Pages
31+ uses : peaceiris/actions-gh-pages@v3
32+ with :
33+ github_token : ${{ secrets.GITHUB_TOKEN }}
34+ publish_dir : ./dist
You can’t perform that action at this time.
0 commit comments