File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy MkDocs to GitHub Pages
1+ name : Deploy Astro to GitHub Pages
22
33on :
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
You can’t perform that action at this time.
0 commit comments