Skip to content

Commit 70729e3

Browse files
committed
chore: update github workflows
1 parent 0989fd7 commit 70729e3

3 files changed

Lines changed: 39 additions & 39 deletions

File tree

.github/workflows/cd-manual.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
name: CloudFlare Pages Deploy
2-
on:
2+
on:
33
workflow_dispatch:
44

55
jobs:
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 }}

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
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

.github/workflows/publish.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
master
6+
- master
77

88
jobs:
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

0 commit comments

Comments
 (0)