File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed
Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change 66 workflow_dispatch :
77
88permissions :
9- contents : read
9+ contents : write # Required to push to a branch
1010 pages : write
1111 id-token : write
1212
@@ -26,18 +26,30 @@ jobs:
2626 - run : pnpm install
2727 - run : pnpm run build
2828 env :
29- BASE_PATH : /docs-template
29+ BASE_PATH : /tinymlhack2024-docs
30+ - name : Prepare for Deployment
31+ run : |
32+ mkdir -p deployment
33+ mv ./out/* ./deployment/
3034 - uses : actions/upload-pages-artifact@v3
3135 with :
32- path : ./out
36+ path : ./deployment
3337
3438 deploy :
35- environment :
36- name : github-pages
37- url : ${{ steps.deployment.outputs.page_url }}
3839 runs-on : ubuntu-latest
3940 needs : build
4041 steps :
41- - name : Deploy to GitHub Pages
42- id : deployment
43- uses : actions/deploy-pages@v4
42+ - name : Checkout Repository
43+ uses : actions/checkout@v4
44+ - name : Download Build Artifact
45+ uses : actions/download-pages-artifact@v3
46+ - name : Deploy to `page` Branch
47+ run : |
48+ git config user.name "GitHub Actions"
49+ git config user.email "[email protected] " 50+ git checkout --orphan page
51+ git rm -rf .
52+ cp -r ./deployment/* .
53+ git add .
54+ git commit -m "Deploy to page branch"
55+ git push -f origin page
You can’t perform that action at this time.
0 commit comments