Skip to content

Commit f10d34c

Browse files
authored
Chore: Use GitHub Pages Custom GitHub Actions Workflows (#193)
1 parent c82c2f7 commit f10d34c

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,11 +5,26 @@ 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: |+
@@ -19,9 +34,12 @@ jobs:
1934
yarn install
2035
yarn pre-build
2136
yarn build
22-
- name: Deploy
23-
uses: peaceiris/actions-gh-pages@v3
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v1
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v1
2441
with:
25-
github_token: ${{ secrets.GITHUB_TOKEN }}
26-
publish_dir: ./explorer-v2/build
27-
force_orphan: true
42+
path: ./explorer-v2/build
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)