Skip to content

Commit 88e5a6a

Browse files
author
Alexia Michelle
committed
fix
1 parent 1459dad commit 88e5a6a

1 file changed

Lines changed: 29 additions & 10 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,48 @@ on:
44
push:
55
branches:
66
- main
7-
# Reviewgh-pages deployment workflow is correct.
87

8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
99
permissions:
10-
contents: write
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
1119

1220
jobs:
13-
deploy:
14-
name: Deploy to GitHub Pages
21+
build:
1522
runs-on: ubuntu-latest
1623
steps:
17-
- uses: actions/checkout@v4
24+
- name: Checkout
25+
uses: actions/checkout@v4
1826
with:
1927
fetch-depth: 0
20-
- uses: actions/setup-node@v4
28+
- name: Setup Node
29+
uses: actions/setup-node@v4
2130
with:
2231
node-version: 20
2332
cache: npm
2433
- name: Install dependencies
2534
run: npm ci
2635
- name: Build website
2736
run: npm run build
28-
- name: Deploy to GitHub Pages
29-
uses: peaceiris/actions-gh-pages@v4
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
3039
with:
31-
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./build
40+
path: ./build
41+
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)