File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Build and Deploy to GitHub Pages
1+ name : Build and Deploy to cf-page Branch
22
33on :
44 push :
1010 runs-on : ubuntu-latest
1111 permissions :
1212 contents : write
13- pages : write
1413 id-token : write
15- environment :
16- name : github-pages
17- url : ${{ steps.deployment.outputs.page_url }}
1814
1915 steps :
2016 - name : Checkout code ποΈ
@@ -38,14 +34,18 @@ jobs:
3834 - name : Build ποΈ
3935 run : npm run build
4036
41- - name : Setup Pages π
42- uses : actions/configure-pages@v5
37+ - name : Zip build folder π¦
38+ run : zip -r build.zip ./build
4339
44- - name : Upload artifact π€
45- uses : actions/upload-pages- artifact@v3
40+ - name : Upload build artifact π€
41+ uses : actions/upload-artifact@v4
4642 with :
47- path : ./build
43+ name : build-artifact
44+ path : ./build.zip
4845
49- - name : Deploy to GitHub Pages π
50- id : deployment
51- uses : actions/deploy-pages@v4
46+ - name : Deploy to cf-page branch π
47+ uses : peaceiris/actions-gh-pages@v4
48+ with :
49+ github_token : ${{ secrets.GITHUB_TOKEN }}
50+ publish_dir : ./build
51+ publish_branch : cf-page
You canβt perform that action at this time.
0 commit comments