Skip to content

Commit 9e2b397

Browse files
authored
Merge pull request #237 from aws-samples/website
Website. Fixing problem with deploying to GitHub pages
2 parents 16578f1 + 922be86 commit 9e2b397

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/website-deploy.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ jobs:
1111
deploy:
1212
name: Deploy to GitHub Pages
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
1416
defaults:
1517
run:
1618
shell: bash
1719
working-directory: website
1820
steps:
19-
- uses: actions/checkout@v4
20-
- uses: actions/setup-node@v4
21+
- uses: actions/checkout@v6
22+
- uses: actions/setup-node@v6
2123
with:
2224
node-version: 20
2325
cache: npm
@@ -31,6 +33,8 @@ jobs:
3133
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
3234
- name: Deploy to GitHub Pages
3335
uses: peaceiris/actions-gh-pages@v4
36+
env:
37+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
3438
with:
3539
github_token: ${{ secrets.GITHUB_TOKEN }}
3640
# Build output to publish to the `gh-pages` branch:

.github/workflows/website-test-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
shell: bash
1818
working-directory: website
1919
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/setup-node@v4
20+
- uses: actions/checkout@v6
21+
- uses: actions/setup-node@v6
2222
with:
2323
node-version: 20
2424
cache: npm

0 commit comments

Comments
 (0)