Skip to content

Commit d86986b

Browse files
committed
fix: add github pages deploy to build ci workflow
1 parent f998e5a commit d86986b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

+32
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,35 @@ jobs:
2222

2323
- name: Build
2424
run: yarn build
25+
26+
deploy-page:
27+
needs: build
28+
runs-on: ubuntu-latest
29+
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
33+
34+
defaults:
35+
run:
36+
working-directory: gh-pages
37+
38+
permissions:
39+
contents: read
40+
pages: write
41+
id-token: write
42+
43+
steps:
44+
- uses: actions/checkout@v3
45+
46+
- name: Install + Build
47+
run: docker-compose up page-build
48+
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v1
51+
with:
52+
path: gh-pages/out
53+
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)