Skip to content

Commit 7943be1

Browse files
committed
Merge branch 'docs'
2 parents 91f06c2 + 7d8c6ea commit 7943be1

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,46 @@ jobs:
3434
--repo="$GITHUB_REPOSITORY" \
3535
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
3636
--generate-notes
37+
docs:
38+
name: Build Docusaurus
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
with:
43+
fetch-depth: 0
44+
- uses: actions/setup-node@v4
45+
with:
46+
node-version: 18
47+
cache: yarn
48+
49+
- name: Install dependencies
50+
working-directory: docs
51+
run: yarn install --frozen-lockfile
52+
- name: Build website
53+
run: yarn build
54+
55+
- name: Upload Build Artifact
56+
working-directory: docs
57+
uses: actions/upload-pages-artifact@v3
58+
with:
59+
path: build
60+
61+
deploy:
62+
name: Deploy to GitHub Pages
63+
needs: build
64+
65+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
66+
permissions:
67+
pages: write # to deploy to Pages
68+
id-token: write # to verify the deployment originates from an appropriate source
69+
70+
# Deploy to the github-pages environment
71+
environment:
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
74+
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: Deploy to GitHub Pages
78+
id: deployment
79+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)