There was an error while loading. Please reload this page.
2 parents 915e546 + a8f45fd commit f9dbf51Copy full SHA for f9dbf51
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,33 @@
1
+name: Deploy Docusaurus to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main # Trigger deployment on push to main branch
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: 20
19
20
+ - name: Install dependencies
21
+ run: npm ci
22
+ working-directory: ./docs # 👈 go into docs folder
23
24
+ - name: Build website
25
+ run: npm run build
26
+ working-directory: ./docs # 👈 build from docs folder
27
28
+ - name: Deploy to GitHub Pages
29
+ uses: peaceiris/actions-gh-pages@v4
30
31
+ github_token: ${{ secrets.GITHUB_TOKEN }}
32
+ publish_dir: ./docs/build # 👈 build output lives here
33
+ publish_branch: gh-pages
0 commit comments