Add pages setup

This commit is contained in:
Mikko Ahlroth 2024-04-20 11:30:38 +03:00
parent e01ddec336
commit b38c35d2c8

19
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,19 @@
image: ghcr.io/gleam-lang/gleam:v1.1.0-node-alpine
pages:
stage: deploy
environment: production
script:
- gleam deps download
- gleam build --target javascript
- rm -rf public
- mkdir .public
- cp -r ./build/dev/docs/gloss/* .public
- mv .public public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
GIT_SUBMODULE_STRATEGY: recursive