1
0
Fork 0
forked from Skynet/wiki

add build to flake, update ci to build on changes to conf

This commit is contained in:
esy 2024-08-20 08:48:41 +01:00
parent cba889a56f
commit 111fcc9aee
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions

View file

@ -8,6 +8,7 @@ on:
- flake.* - flake.*
- src/**/* - src/**/*
- .forgejo/**/* - .forgejo/**/*
- mkdocs.yml
jobs: jobs:
# Build it locally, this helps caching for later # Build it locally, this helps caching for later
@ -31,4 +32,4 @@ jobs:
- uses: https://forgejo.skynet.ie/Skynet/actions-deploy-to-skynet/deploy@v3 - uses: https://forgejo.skynet.ie/Skynet/actions-deploy-to-skynet/deploy@v3
with: with:
input: 'skynet_website_wiki' input: 'skynet_website_wiki'
token: ${{ secrets.API_TOKEN_FORGEJO }} token: ${{ secrets.API_TOKEN_FORGEJO }}

View file

@ -26,6 +26,11 @@
pkgs.python3Packages.mkdocs pkgs.python3Packages.mkdocs
pkgs.python3Packages.mkdocs-material pkgs.python3Packages.mkdocs-material
]; ];
shellHook = ''
echo "Building wiki"
mkdocs build
mkdocs serve
'';
}; };
} }
); );