Skip to content

Commit 0007c4d

Browse files
authored
Merge pull request #81 from braboj/fix/ci-astro-deploy
Fix CI: switch from MkDocs to Astro
2 parents 08b9dc9 + b830f2a commit 0007c4d

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy MkDocs to GitHub Pages
1+
name: Deploy Astro to GitHub Pages
22

33
on:
44
push:
@@ -21,22 +21,27 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24-
- name: Set up Python
25-
uses: actions/setup-python@v5
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v4
2626
with:
27-
python-version: "3.12"
27+
node-version: "22"
2828

2929
- name: Install dependencies
30-
run: |
31-
pip install mkdocs-material
30+
working-directory: astro-site
31+
run: npm ci
32+
33+
- name: Create assets symlink
34+
working-directory: astro-site/src/content
35+
run: ln -s ../../../assets assets
3236

3337
- name: Build site
34-
run: mkdocs build --strict
38+
working-directory: astro-site
39+
run: npm run build
3540

3641
- name: Upload artifact
3742
uses: actions/upload-pages-artifact@v3
3843
with:
39-
path: site/
44+
path: astro-site/dist/
4045

4146
deploy:
4247
needs: build

0 commit comments

Comments
 (0)