File tree Expand file tree Collapse file tree 4 files changed +134
-37
lines changed
Expand file tree Collapse file tree 4 files changed +134
-37
lines changed Original file line number Diff line number Diff line change 1- # name: Deploy to Cloudflare Pages
1+ name : Deploy to Cloudflare Pages
22
3- # on:
4- # push:
5- # branches:
6- # - main
3+ on :
4+ push :
5+ branches :
6+ - main
77
8- # jobs:
9- # deploy:
10- # runs-on: ubuntu-latest
11- # name: Deploy
12- # steps:
13- # - uses: actions/checkout@v4
14- # - name: Deploy
15- # uses: cloudflare/wrangler-action@v3
16- # with:
17- # environment: production
18- # apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
19- # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
20- # command: pages deploy docs/.vitepress/dist --project-name=elysia-doc
21- # gitHubToken: ${{ secrets.GITHUB_TOKEN }}
22- # env:
23- # NODE_OPTIONS: --max-old-space-size=8192
24- # NODE_VERSION: 22.14.0
25- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+ name : Deploy
12+ steps :
13+ - uses : actions/checkout@v4
14+ - name : Deploy
15+ uses : cloudflare/wrangler-action@v3
16+ with :
17+ environment : production
18+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
19+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
20+ command : pages deploy docs/.vitepress/dist --project-name=elysia-doc
21+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
22+ env :
23+ NODE_OPTIONS : --max-old-space-size=8192
24+ NODE_VERSION : 22.14.0
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments