pse-podcast-synchronisation/pse-dashboard/.gitlab-ci.yml
2024-06-27 12:11:14 +02:00

32 lines
412 B
YAML

variables:
#BASE_DIR: $CI_PAGES_URL
BASE_DIR: /pse-dashboard/
image: node
stages:
- test
- deploy
lint:
stage: test
script:
- npm install
- npm run lint
allow_failure: true
pages:
stage: deploy
script:
- npm install
- npm run build
- rm -rf public
- mv dist public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH