Skip to content

Commit 52b6fda

Browse files
committed
fix missing permissions in refresh static
1 parent 45fd420 commit 52b6fda

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

.github/workflows/refresh_static.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ on:
88
env:
99
package_dir: "/"
1010

11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: false
20+
1121
jobs:
1222
refresh-static-assets:
1323
runs-on: ubuntu-latest
@@ -51,21 +61,3 @@ jobs:
5161
git add .
5262
git commit -m 'Updating static site'
5363
git push origin main
54-
55-
- name: Setup Pages
56-
id: setup-pages
57-
if: steps.push-to-main.outcome == 'success'
58-
uses: actions/configure-pages@v5
59-
60-
- name: Upload artifact
61-
if: steps.setup-pages.outcome == 'success'
62-
id: upload
63-
uses: actions/upload-pages-artifact@v3
64-
with:
65-
# Upload contents of static folder
66-
path: "./static/"
67-
68-
- name: Deploy to GitHub Pages
69-
if: steps.upload.outcome == 'success'
70-
id: deploy
71-
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)