File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed
Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change 11name : my-pipeline
22
3- permissions :
4- contents : write
5-
63on :
74 push :
8- tags :
9- - ' *'
105 branches :
116 - main
127
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
1313env :
1414 REGISTRY : ghcr.io
1515 IMAGE_NAME : ${{ github.repository }}
3636 - name : build
3737 run : yarn build
3838
39- - name : deploy
40- uses : peaceiris/ actions-gh- pages@v3
39+ - name : upload artifact
40+ uses : actions/upload- pages-artifact@v2
4141 with :
42- github_token : ${{ secrets.GITHUB_TOKEN }}
43- publish_dir : ./build
44- # cname: wolanx.com
42+ path : ./build
43+
44+ deploy :
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
48+ runs-on : ubuntu-latest
49+ needs : build
50+ steps :
51+ - name : Deploy to GitHub Pages
52+ id : deployment
53+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments