File tree Expand file tree Collapse file tree 1 file changed +20
-25
lines changed Expand file tree Collapse file tree 1 file changed +20
-25
lines changed Original file line number Diff line number Diff line change 99 name : yarn install
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v2
13- - uses : actions/setup-node@v2
12+ - uses : actions/checkout@v4
13+ - uses : actions/setup-node@v4
1414 with :
1515 node-version : 20
16- - run : npm install -g yarn
17- - name : Get yarn cache
18- id : yarn-cache
19- run : echo "::set-output name=dir::$(yarn cache dir)"
20- - uses : actions/cache@v2
21- with :
22- path : ${{ steps.yarn-cache.outputs.dir }}
23- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
24- restore-keys : |
25- ${{ runner.os }}-yarn-
16+ cache : yarn
2617 - run : yarn install
2718 - run : yarn build
28- if : github.ref != 'refs/heads/master'
29- - run : yarn build
30- if : github.ref == 'refs/heads/master'
31- env :
32- CSS_COMMIT : gh-pages
33- - name : Deploy to GitHub Pages
34- uses : JamesIves/github-pages-deploy-action@releases/v4
35- if : github.ref == 'refs/heads/master'
19+ - name : Upload Pages artifact
20+ uses : actions/upload-pages-artifact@v3
3621 with :
37- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38- BRANCH : gh-pages
39- FOLDER : public
40- BASE_BRANCH : master
41- CLEAN : true
22+ path : public
23+ deploy :
24+ needs : build
25+ permissions :
26+ pages : write
27+ id-token : write
28+ environment :
29+ name : github-pages
30+ url : ${{ steps.deployment.outputs.page_url }}
31+ runs-on : ubuntu-latest
32+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
33+ steps :
34+ - name : Deploy to GitHub Pages
35+ id : deployment
36+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments