mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
Add initial GitLab CI configuration
This will automatically build and publish the Home Manager manual on GitLab Pages.
This commit is contained in:
14
.gitlab-ci.yml
Normal file
14
.gitlab-ci.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
image: nixos/nix:latest
|
||||||
|
|
||||||
|
pages:
|
||||||
|
script:
|
||||||
|
- mkdir -p ~/.config/nixpkgs
|
||||||
|
- echo '{ manual.html.enable = true; }' > ~/.config/nixpkgs/home.nix
|
||||||
|
- nix-shell . -A install
|
||||||
|
- mkdir public
|
||||||
|
- cp -r ~/.nix-profile/share/doc/home-manager/* public/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master
|
||||||
Reference in New Issue
Block a user