File tree Expand file tree Collapse file tree 3 files changed +20
-18
lines changed
Expand file tree Collapse file tree 3 files changed +20
-18
lines changed Original file line number Diff line number Diff 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
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 :
6769 repo: context.repo.repo,
6870 body: '# [Preview](https://${{ env.BRANCH_NAME }}.webpage-5t5.pages.dev/)'
6971 })
70-
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Publish on GitHub Pages
22
33on :
44 push :
5- branches : [ ' master' ]
5+ branches : [" master" ]
66
77permissions :
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
You can’t perform that action at this time.
0 commit comments