2020-10-12 00:22:58 +00:00
|
|
|
image: nixos/nix:latest
|
|
|
|
|
|
|
|
variables:
|
2021-07-02 22:36:30 +00:00
|
|
|
NIX_PATH: "nixpkgs=channel:nixos-unstable"
|
2020-10-12 00:22:58 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
2023-01-10 09:35:00 +00:00
|
|
|
- nix-build -A docs.html
|
2020-10-12 00:22:58 +00:00
|
|
|
- mkdir public
|
2023-01-10 09:35:00 +00:00
|
|
|
- cp -r ./result/share/doc/home-manager/* public/
|
2020-10-12 00:22:58 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == "master"
|
|
|
|
when: always
|
|
|
|
|
|
|
|
Deploy NUR:
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
HM_BRANCH: $CI_COMMIT_REF_NAME
|
|
|
|
HM_COMMIT_SHA: $CI_COMMIT_SHA
|
|
|
|
trigger:
|
|
|
|
project: rycee/nur-expressions
|
|
|
|
branch: master
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH =~ /^release-/
|
|
|
|
when: always
|