Skip to content

Commit 254af8a

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents 19caba5 + 394124b commit 254af8a

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,31 @@ jobs:
3434
- name: Install dependencies
3535
run: yarn install
3636

37-
- name: Test build website
37+
- name: Build website in staging confuguration
3838
run: yarn build-staging
3939

4040
- name: Upload Build Artifact
41-
uses: actions/upload-artifact@v4
41+
id: deployment
42+
uses: actions/upload-pages-artifact@v3
4243
with:
43-
name: gh-pages-depl-payload
44-
path: $BUILD_DIR
44+
path: ./build
4545

4646
deploy:
4747
name: Deploy to GitHub Pages
4848
needs: build-staging
4949
runs-on: ubuntu-latest
50+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
51+
permissions:
52+
pages: write # to deploy to Pages
53+
id-token: write # to verify the deployment originates from an appropriate source
54+
environment:
55+
name: github-pages
56+
url: ${{ steps.deployment.outputs.page_url }}
5057
steps:
51-
- uses: actions/download-artifact@master
52-
with:
53-
name: gh-pages-depl-payload
54-
path: $BUILD_DIR
58+
- name: Deploy to GitHub Pages
59+
id: deployment
60+
uses: actions/deploy-pages@v4
5561

56-
- name: Deploy to GitHub Pages
57-
uses: peaceiris/actions-gh-pages@v3
58-
with:
59-
github_token: ${{ secrets.GITHUB_TOKEN }}
60-
publish_dir: $BUILD_DIR
61-
62-
- name: Wait some time to make sure deployment is finished
63-
run: |
64-
sleep 60
62+
- name: Wait some time to make sure deployment is finished
63+
run: |
64+
sleep 60

0 commit comments

Comments
 (0)