Skip to content

Commit 84ca505

Browse files
committed
moved deployment to docusaurus
1 parent 4697a1b commit 84ca505

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/documenation-deployment.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [master]
66
paths:
7-
- 'docs/**'
7+
- 'website/**'
88
workflow_dispatch:
99

1010
permissions:
@@ -19,13 +19,25 @@ jobs:
1919
- name: Checkout Repository
2020
uses: actions/checkout@v4
2121

22-
- name: Enable Corepack and Set up Yarn 4.0.0
23-
run: corepack enable && corepack prepare yarn@4.0.0 --activate
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
cache: 'yarn'
27+
cache-dependency-path: website/yarn.lock
28+
29+
- name: Install Dependencies
30+
working-directory: ./website
31+
run: yarn install --immutable
32+
33+
- name: Build Docusaurus Website
34+
working-directory: ./website
35+
run: yarn build
2436

25-
- name: Build and Upload Checkmate Docs
26-
uses: withastro/action@v3
37+
- name: Upload Build Artifact
38+
uses: actions/upload-pages-artifact@v3
2739
with:
28-
path: docs
40+
path: website/build
2941
env:
3042
GOOGLE_ANALYTICS_TOKEN: ${{ secrets.GOOGLE_ANALYTICS_TOKEN }}
3143

@@ -36,6 +48,6 @@ jobs:
3648
name: github-pages
3749
url: ${{ steps.deployment.outputs.page_url }}
3850
steps:
39-
- name: Deploy Checkmate Docs to GitHub Pages
51+
- name: Deploy Docusaurus Website to GitHub Pages
4052
id: deployment
4153
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)