mirror of
https://gitlab.com/comunic/comunicconsole
synced 2024-11-23 13:59:23 +00:00
20 lines
502 B
YAML
20 lines
502 B
YAML
image: node:14
|
|
|
|
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
|
|
- mv build public
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|