File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: Build and deploy
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - ' main'
5
7
paths :
6
8
- " .github/**"
7
9
- " .vitepress/**"
@@ -83,10 +85,11 @@ jobs:
83
85
run : |
84
86
sed -e "s/BUILD_TIME/$(TZ=Asia/Shanghai date -Isecond)/" -e "s/COMMIT_SHA/${{ github.sha }}/" -i src/about.md
85
87
npm run build
86
- - name : Upload artifact
87
- uses : actions/upload- pages-artifact@v3
88
+ - name : Publish to Cloudflare Pages
89
+ uses : cloudflare/ pages-action@v1
88
90
with :
89
- path : " .vitepress/dist/"
90
- - name : Deploy to GitHub Pages
91
- id : deployment
92
- uses : actions/deploy-pages@v4
91
+ apiToken : ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
92
+ accountId : ${{ secrets.CLOUDFLARE_PAGES_ACCOUNT }}
93
+ projectName : proskynova-github-io
94
+ directory : .vitepress/dist
95
+ wranglerVersion : ' 3'
You can’t perform that action at this time.
0 commit comments