Skip to content

Commit d4b5e8e

Browse files
committed
switch to effect for pages
1 parent 1abf777 commit d4b5e8e

File tree

2 files changed

+5
-51
lines changed

2 files changed

+5
-51
lines changed

.github/workflows/pages.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

flake.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
inputs.treefmt-nix.flakeModule
6262
];
6363

64+
hercules-ci.github-pages.branch = "master";
65+
6466
perSystem = { config, inputs', lib, pkgs, self', system, ... }:
6567
let
6668
defaultPlatform = pkgs.stdenv.hostPlatform.system == "x86_64-linux";
@@ -90,8 +92,9 @@
9092
nixosTests-hydra = pkgs.nixosTests.hydra.hydra_unstable;
9193
};
9294

93-
packages = pkgs.lib.optionalAttrs defaultPlatform {
94-
pages = pkgs.runCommand "pages"
95+
hercules-ci.github-pages.settings = {
96+
secretsMap.token = "token-for-pages";
97+
contents = pkgs.runCommand "pages"
9598
{
9699
buildInputs = [ config.devShells.mkdocs.nativeBuildInputs ];
97100
} ''

0 commit comments

Comments
 (0)