Add pages setup
This commit is contained in:
parent
e01ddec336
commit
b38c35d2c8
1 changed files with 19 additions and 0 deletions
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal 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
|
Loading…
Reference in a new issue