File tree Expand file tree Collapse file tree 1 file changed +28
-27
lines changed
Expand file tree Collapse file tree 1 file changed +28
-27
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Multi-Agent
22
33on :
44 push :
5- branches :
6- - main
5+ branches : ['main']
76
87jobs :
9- deploy :
8+ build :
109 runs-on : ubuntu-latest
10+
11+ strategy :
12+ matrix :
13+ node-version : ['20']
14+
15+ permissions :
16+ contents : write
17+
1118 steps :
12- - uses : actions/checkout@v2
19+ - uses : actions/checkout@v4
1320
14- - name : Setup Node
15- uses : actions/setup-node@v1
21+ - name : Use Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v4
1623 with :
17- node-version : " 14.x"
24+ node-version : ${{ matrix.node-version }}
25+ cache : ' yarn'
1826
19- - name : Get yarn cache
20- id : yarn-cache
21- run : echo "::set-output name=dir::$(yarn cache dir)"
27+ - name : Install packages
28+ run : yarn install
2229
23- - name : Cache dependencies
24- uses : actions/cache@v1
25- with :
26- path : ${{ steps.yarn-cache.outputs.dir }}
27- key : ${{ runner.os }}-website-${{ hashFiles('**/yarn.lock') }}
28- restore-keys : |
29- ${{ runner.os }}-website-
30- - run : yarn install --frozen-lockfile
31- - run : yarn build
32- env :
33- FORM_SCRIPT : ${{ secrets.FORM_SCRIPT }}
34-
35- - name : Deploy
36- uses : peaceiris/actions-gh-pages@v3
30+ - name : Run yarn build
31+ run : yarn build
32+
33+ - name : Add .nojekyll file
34+ run : touch dist/.nojekyll
35+
36+ - name : Deploy to gh-pages
37+ uses : peaceiris/actions-gh-pages@v4
3738 with :
38- github_token : ${{ secrets.GITHUB_TOKEN }}
39- publish_dir : ./dist
39+ publish_dir : ./dist
40+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments