From 111fcc9aeefc1b7634098d07560029e714f5f921 Mon Sep 17 00:00:00 2001 From: Daragh Downes Date: Tue, 20 Aug 2024 08:48:41 +0100 Subject: [PATCH] add build to flake, update ci to build on changes to conf --- .forgejo/workflows/build.yaml | 3 ++- flake.nix | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 826295c..a88d71a 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -8,6 +8,7 @@ on: - flake.* - src/**/* - .forgejo/**/* + - mkdocs.yml jobs: # 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 with: input: 'skynet_website_wiki' - token: ${{ secrets.API_TOKEN_FORGEJO }} \ No newline at end of file + token: ${{ secrets.API_TOKEN_FORGEJO }} diff --git a/flake.nix b/flake.nix index 586c0a0..835ea44 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,11 @@ pkgs.python3Packages.mkdocs pkgs.python3Packages.mkdocs-material ]; + shellHook = '' + echo "Building wiki" + mkdocs build + mkdocs serve + ''; }; } );