Skip to content

Commit 9d1f08e

Browse files
committed
chore: prepare to test docusaurus
1 parent 6072966 commit 9d1f08e

File tree

7 files changed

+13674
-162
lines changed

7 files changed

+13674
-162
lines changed

.github/workflows/publish.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
workflow_dispatch:
5+
# push:
6+
# branches:
7+
# - main
8+
# Review gh actions docs if you want to further define triggers, paths, etc
9+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
10+
11+
jobs:
12+
build:
13+
name: Build Docusaurus
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: npm
21+
22+
- name: Install dependencies
23+
run: npm i
24+
- name: Build website
25+
run: npm run build
26+
27+
- name: Upload Build Artifact
28+
uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: website/build
31+
32+
deploy:
33+
name: Deploy to GitHub Pages
34+
needs: build
35+
36+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
37+
permissions:
38+
pages: write # to deploy to Pages
39+
id-token: write # to verify the deployment originates from an appropriate source
40+
41+
# Deploy to the github-pages environment
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)