added gitlab pages ci file

This commit is contained in:
Kristian Krsnik 2023-08-17 17:28:01 +02:00
parent 56d3669da7
commit 7e574f8f63
1 changed files with 15 additions and 0 deletions

15
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,15 @@
image: nixos:nix
pages:
script:
# enable flakes
- mkdir -p ~/.config/nix
- echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
# the final contents for your page always have to be stored in the public folder
- nix build
- cp -r result/. public/
artifacts:
# artifact to make it visible for gitlab pages
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH