Fixed CI
This commit is contained in:
@@ -20,7 +20,7 @@ concurrency:
|
|||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-doc-options:
|
run-nix-build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -40,16 +40,13 @@ jobs:
|
|||||||
name: website
|
name: website
|
||||||
path: ./out
|
path: ./out
|
||||||
|
|
||||||
deploy-docs:
|
deploy-site:
|
||||||
needs: generate-doc-options
|
needs: run-nix-build
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Get nix build output
|
- name: Get nix build output
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -57,13 +54,13 @@ jobs:
|
|||||||
path: './out'
|
path: './out'
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v3
|
uses: actions/configure-pages@v5
|
||||||
|
|
||||||
- name: Upload GH pages artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: './out'
|
path: './out'
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v2
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
@@ -100,31 +100,6 @@
|
|||||||
in {
|
in {
|
||||||
default = website.package;
|
default = website.package;
|
||||||
debug = website.loop;
|
debug = website.loop;
|
||||||
testPkg = pkgs.stdenv.mkDerivation {
|
|
||||||
name = "test-pkg";
|
|
||||||
src = ./.;
|
|
||||||
buildInputs = [(
|
|
||||||
pkgs.writeShellApplication {
|
|
||||||
name = "test-pkg-builder";
|
|
||||||
|
|
||||||
runtimeInputs = with pkgs; [
|
|
||||||
pandoc
|
|
||||||
coreutils
|
|
||||||
findutils
|
|
||||||
gnused
|
|
||||||
rsync
|
|
||||||
git
|
|
||||||
];
|
|
||||||
|
|
||||||
text = ''
|
|
||||||
echo "${self.lastModified}"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
)];
|
|
||||||
phases = ["unpackPhase" "buildPhase"];
|
|
||||||
buildPhase = "test-pkg-builder";
|
|
||||||
};
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
formatter = forAllSystems ({pkgs}: pkgs.alejandra);
|
formatter = forAllSystems ({pkgs}: pkgs.alejandra);
|
||||||
|
|||||||
Reference in New Issue
Block a user