Skip to content

Commit a470d33

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

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ 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: deno task build --lock=deno.lock --lock-write
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.TOKEN }}
36-
36+
3737
- name: Deploy to CF Pages
3838
id: deploy-preview
3939
uses: cloudflare/wrangler-action@v3
@@ -47,7 +47,7 @@ jobs:
4747
command: pages deploy target --project-name=${{ github.event.repository.name }} --branch=${{ env.BRANCH_NAME }}
4848

4949
- name: Report preview environment in PR
50-
uses: actions/github-script@v6
50+
uses: actions/github-script@v7
5151
env:
5252
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
5353
with:
@@ -67,4 +67,3 @@ jobs:
6767
repo: context.repo.repo,
6868
body: '# [Preview](https://${{ env.BRANCH_NAME }}.webpage-5t5.pages.dev/)'
6969
})
70-

.github/workflows/deploy.yml

Lines changed: 10 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,23 @@ 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: deno task build --lock=deno.lock --lock-write
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.TOKEN }}
33-
33+
3434
- name: Setup Pages
35-
uses: actions/configure-pages@v4
36-
35+
uses: actions/configure-pages@v5
36+
3737
- name: Upload artifact
38-
uses: actions/upload-pages-artifact@v2
38+
uses: actions/upload-pages-artifact@v3
3939
with:
40-
path: 'target'
40+
path: "target"
4141

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

0 commit comments

Comments
 (0)