File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CloudFlare Pages Deploy
2- on :
2+ on :
33 workflow_dispatch :
44
55jobs :
66 deploy :
7- runs-on : ubuntu-latest
8- permissions :
9- contents : read
10- deployments : write
11- steps :
12- - uses : actions/checkout@v3
13- - run : corepack enable
14- - uses : actions/setup-node@v4
15- with :
16- cache : yarn
17- node-version : ' 20 '
18- - name : Bootstrap
19- run : yarn --immutable
20- - name : Build
21- run : yarn build
22- - name : Publish to Cloudflare Pages
23- uses : cloudflare/pages-action@1
24- with :
25- apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
26- accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
27- projectName : simpleserialize
28- directory : ./dist
29- gitHubToken : ${{ secrets.GITHUB_TOKEN }}
7+ runs-on : ubuntu-latest
8+ permissions :
9+ contents : read
10+ deployments : write
11+ steps :
12+ - uses : actions/checkout@v5
13+ - run : corepack enable
14+ - uses : actions/setup-node@v5
15+ with :
16+ cache : yarn
17+ node-version : " 22 "
18+ - name : Bootstrap
19+ run : yarn --immutable
20+ - name : Build
21+ run : yarn build
22+ - name : Publish to Cloudflare Pages
23+ uses : cloudflare/pages-action@1
24+ with :
25+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
26+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
27+ projectName : simpleserialize
28+ directory : ./dist
29+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 66 Checks :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : actions/checkout@v1
9+ - uses : actions/checkout@v5
1010 - run : yarn install
1111 - run : yarn build
1212 - run : yarn check-types
Original file line number Diff line number Diff line change @@ -3,22 +3,22 @@ name: Deploy to GitHub Pages
33on :
44 push :
55 branches :
6- master
6+ - master
77
88jobs :
99 publish :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v1
13- - name : Setup Node
14- uses : actions/setup-node@v1
15- with :
16- node-version : ' 12.x '
17- - run : yarn
18- - run : yarn build
19- - name : Deploy
20- uses : peaceiris/actions-gh-pages@v2
21- env :
22- PERSONAL_TOKEN : ${{ secrets.GH_PAGES_TOKEN }}
23- PUBLISH_BRANCH : gh-pages
24- PUBLISH_DIR : ./dist
12+ - uses : actions/checkout@v4
13+ - name : Setup Node
14+ uses : actions/setup-node@v4
15+ with :
16+ node-version : " 22 "
17+ - run : yarn
18+ - run : yarn build
19+ - name : Deploy
20+ uses : peaceiris/actions-gh-pages@v3
21+ env :
22+ PERSONAL_TOKEN : ${{ secrets.GH_PAGES_TOKEN }}
23+ PUBLISH_BRANCH : gh-pages
24+ PUBLISH_DIR : ./dist
You can’t perform that action at this time.
0 commit comments