Skip to content

Commit 5d8a219

Browse files
committed
[TASK] Modernize GitHub Pages workflow
1 parent 274e596 commit 5d8a219

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/site.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
if: github.repository == 'typo3/typo3.icons'
1717
permissions:
18-
contents: write
18+
contents: read
19+
pages: write
20+
id-token: write
1921

2022
steps:
2123
- name: Checkout Code
@@ -43,10 +45,13 @@ jobs:
4345
- name: Build site
4446
run: npm run site-build
4547

46-
- name: Deploy
47-
uses: peaceiris/actions-gh-pages@v4
48+
- name: Setup Pages
49+
uses: actions/configure-pages@v5
50+
51+
- name: Upload artifact
52+
uses: actions/upload-pages-artifact@v3
4853
with:
49-
allow_empty_commit: false
50-
github_token: ${{ secrets.GITHUB_TOKEN }}
51-
publish_branch: gh-pages
52-
publish_dir: ./_site/
54+
path: ./_site/
55+
56+
- name: Deploy to GitHub Pages
57+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)