comunicconsole/.gitlab-ci.yml

20 lines
502 B
YAML
Raw Normal View History

2022-06-12 16:56:49 +00:00
image: node:18
2021-07-13 17:05:46 +00:00
pages:
stage: deploy
script:
- echo Compile project
- npm install
- npm run build
- echo Overwrite configuration
- echo "{\"api_url\":\"https://api.communiquons.org/admin/\"}" > build/config.json
- echo Create 404 page
- cp build/index.html build/404.html
- rm -rf public
2021-07-13 17:36:59 +00:00
- mv build public
2021-07-13 17:05:46 +00:00
artifacts:
paths:
2021-07-13 17:36:59 +00:00
- public
2021-07-13 17:05:46 +00:00
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH