Browse Source

Add initial GitLab CI configuration

This will automatically build and publish the Home Manager manual on
GitLab Pages.
keep-around/736e340bde8831e1ffb3e423056a801d0546a83c
Robert Helgesson 11 months ago
parent
commit
8e05229e62
No account linked to committer's email address
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      .gitlab-ci.yml

+ 14
- 0
.gitlab-ci.yml View File

@@ -0,0 +1,14 @@
1
+image: nixos/nix:latest
2
+
3
+pages:
4
+  script:
5
+    - mkdir -p ~/.config/nixpkgs
6
+    - echo '{ manual.html.enable = true; }' > ~/.config/nixpkgs/home.nix
7
+    - nix-shell . -A install
8
+    - mkdir public
9
+    - cp -r ~/.nix-profile/share/doc/home-manager/* public/
10
+  artifacts:
11
+    paths:
12
+      - public
13
+  only:
14
+    - master

Loading…
Cancel
Save