Skip to content

Commit 97fd2db

Browse files
authored
Chore: Use GitHub Pages Custom GitHub Actions Workflows (#200)
1 parent 7fc9ecc commit 97fd2db

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

.github/workflows/GHPages.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,39 @@ on:
55
push:
66
branches: [main]
77

8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow one concurrent deployment
15+
concurrency:
16+
group: pages
17+
cancel-in-progress: true
18+
819
jobs:
9-
deploy-docs:
20+
deploy:
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
1024
runs-on: ubuntu-latest
1125
steps:
12-
- uses: actions/checkout@v3
26+
- name: Checkout
27+
uses: actions/checkout@v3
1328
- uses: actions/setup-node@v3
1429
- name: Install And Build
1530
run: |+
1631
yarn install
1732
yarn build
1833
export NODE_OPTIONS="--max-old-space-size=8192"
1934
yarn docs:build
20-
- name: Deploy
21-
uses: peaceiris/actions-gh-pages@v3
35+
- name: Setup Pages
36+
uses: actions/configure-pages@v1
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v1
2239
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
publish_dir: ./build
25-
force_orphan: true
40+
path: ./build
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)