summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2022-12-01 02:50:57 +0100
committerpacien2022-12-01 02:50:57 +0100
commit1721d747bb225e19f97acf88c68af62661d33af8 (patch)
treed7f2bf631875a15fa6832034da1977c9b7fbf487
parentebe19f9ed6bfd555460984b8c7e3252427e5c6ac (diff)
downloadmarkdown-course-website-1721d747bb225e19f97acf88c68af62661d33af8.tar.gz
ci: configure gitlab CI with auto page publishing
-rw-r--r--.gitlab-ci.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..ebb1ee7
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,29 @@
1stages:
2 - build
3 - publish
4
5flake:
6 stage: build
7 image: nixpkgs/nix-flakes:nixos-22.05
8
9 script:
10 - nix build .#
11 - cp -Lr result out
12
13 artifacts:
14 paths:
15 - out/
16
17pages:
18 stage: publish
19
20 only:
21 - main
22
23 script:
24 - cp -r out/website public
25
26 artifacts:
27 paths:
28 - public
29