website/.gitlab-ci.yml

22 lines
353 B
YAML
Raw Normal View History

2021-05-16 23:23:08 +03:00
image: yusdacra/nix-flake:latest
2020-03-15 20:12:27 +03:00
2021-05-17 04:40:39 +03:00
variables:
CACHIX_NAME: yusdacra-website
before_script:
- . /bin/pre-build.sh
2020-03-15 20:12:27 +03:00
pages:
stage: deploy
script:
2021-05-16 23:28:31 +03:00
- nix build -L --show-trace
2022-04-10 07:30:13 +03:00
- nix profile install nixpkgs#rsync
- rsync -Lkr ./result/* public
2020-03-15 20:12:27 +03:00
artifacts:
paths:
2021-05-16 23:28:31 +03:00
- public
2020-03-15 20:12:27 +03:00
only:
2021-05-17 04:40:39 +03:00
- master
after_script:
- . /bin/post-build.sh