Skip to content

Commit a90ac74

Browse files
committed
chore: update versions in publish action
The only difference that looks like it requires a change is in the new permissions needed for upload-pages-artifact
1 parent c34e350 commit a90ac74

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ jobs:
4646
run: npm rebuild
4747

4848
- name: Setup Pages
49-
uses: actions/configure-pages@v1
49+
uses: actions/configure-pages@v4
5050

5151
- name: Restore cache
5252
id: cache-gatsby
53-
uses: actions/cache/restore@v3
53+
uses: actions/cache/restore@v4
5454
with:
5555
key: ${{ runner.os }}-gatsby-${{ github.ref_name }}
5656
path: |
@@ -63,21 +63,22 @@ jobs:
6363
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6464

6565
- name: Save cache
66-
uses: actions/cache/save@v3
66+
uses: actions/cache/save@v4
6767
with:
6868
key: ${{ steps.cache-gatsby.outputs.cache-primary-key }}
6969
path: |
7070
public
7171
.cache
7272
7373
- name: Upload artifact
74-
uses: actions/upload-pages-artifact@v1
74+
uses: actions/upload-pages-artifact@v3
7575
with:
7676
path: './public'
7777

7878
deploy:
7979
permissions:
8080
pages: write
81+
actions: read
8182
id-token: write
8283
environment:
8384
name: github-pages
@@ -87,6 +88,6 @@ jobs:
8788
steps:
8889
- name: Deploy to GitHub Pages
8990
id: deployment
90-
uses: actions/deploy-pages@v1
91+
uses: actions/deploy-pages@v4
9192
with:
9293
preview: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)