Skip to content

Commit

Permalink
switch to effect for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed Dec 27, 2023
1 parent 1abf777 commit d4b5e8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 51 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/pages.yml

This file was deleted.

7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
inputs.treefmt-nix.flakeModule
];

hercules-ci.github-pages.branch = "master";

perSystem = { config, inputs', lib, pkgs, self', system, ... }:
let
defaultPlatform = pkgs.stdenv.hostPlatform.system == "x86_64-linux";
Expand Down Expand Up @@ -90,8 +92,9 @@
nixosTests-hydra = pkgs.nixosTests.hydra.hydra_unstable;
};

packages = pkgs.lib.optionalAttrs defaultPlatform {
pages = pkgs.runCommand "pages"
hercules-ci.github-pages.settings = {
secretsMap.token = "token-for-pages";
contents = pkgs.runCommand "pages"
{
buildInputs = [ config.devShells.mkdocs.nativeBuildInputs ];
} ''
Expand Down

0 comments on commit d4b5e8e

Please sign in to comment.