comunicconsole/.gitlab-ci.yml
2021-07-13 19:05:46 +02:00

18 lines
450 B
YAML

image: npm: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
artifacts:
paths:
- build
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH