Skip to content

Commit dfbded8

Browse files
committed
Update the actions
1 parent 4fab431 commit dfbded8

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@ jobs:
2525
ref: ${{ github.event.pull_request.head.sha }}
2626

2727
- name: Setup Deno environment
28-
uses: denoland/setup-deno@v1
28+
uses: denoland/setup-deno@v2
2929
with:
30-
deno-version: v1.x
30+
deno-version: v2.x
3131

3232
- name: Build site
33-
run: deno task build
33+
run: |
34+
deno cache --reload
35+
deno task build
3436
env:
3537
GITHUB_TOKEN: ${{ secrets.TOKEN }}
36-
38+
3739
- name: Deploy to CF Pages
3840
id: deploy-preview
3941
uses: cloudflare/wrangler-action@v3
@@ -47,7 +49,7 @@ jobs:
4749
command: pages deploy target --project-name=${{ github.event.repository.name }} --branch=${{ env.BRANCH_NAME }}
4850

4951
- name: Report preview environment in PR
50-
uses: actions/github-script@v6
52+
uses: actions/github-script@v7
5153
env:
5254
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
5355
with:
@@ -67,4 +69,3 @@ jobs:
6769
repo: context.repo.repo,
6870
body: '# [Preview](https://${{ env.BRANCH_NAME }}.webpage-5t5.pages.dev/)'
6971
})
70-

.github/workflows/deploy.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish on GitHub Pages
22

33
on:
44
push:
5-
branches: [ 'master' ]
5+
branches: ["master"]
66

77
permissions:
88
contents: read
@@ -22,24 +22,25 @@ jobs:
2222
uses: actions/checkout@v4
2323

2424
- name: Setup Deno environment
25-
uses: denoland/setup-deno@v1
25+
uses: denoland/setup-deno@v2
2626
with:
27-
deno-version: v1.x
27+
deno-version: v2.x
2828

2929
- name: Build site
30-
run: deno task build
30+
run: |
31+
deno cache --reload
32+
deno task build
3133
env:
3234
GITHUB_TOKEN: ${{ secrets.TOKEN }}
33-
35+
3436
- name: Setup Pages
35-
uses: actions/configure-pages@v4
36-
37+
uses: actions/configure-pages@v5
38+
3739
- name: Upload artifact
38-
uses: actions/upload-pages-artifact@v2
40+
uses: actions/upload-pages-artifact@v3
3941
with:
40-
path: 'target'
42+
path: "target"
4143

4244
- name: Deploy to GitHub Pages
4345
id: deployment
44-
uses: actions/deploy-pages@v3
45-
46+
uses: actions/deploy-pages@v4

deno.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)