Loading .gitlab-ci.yml +13 −6 Original line number Diff line number Diff line image: "node:16-alpine" stages: - test - build - deploy pages: stage: deploy build: stage: build script: - yarn install --frozen-lockfile --check-files --non-interactive - yarn build - mv dist public # rename the dist folder (result of npm run build) - cp -r dist/* public artifacts: paths: - public pages: stage: deploy script: - echo 'Pages deployment job' artifacts: paths: - public rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH No newline at end of file only: - main Loading
.gitlab-ci.yml +13 −6 Original line number Diff line number Diff line image: "node:16-alpine" stages: - test - build - deploy pages: stage: deploy build: stage: build script: - yarn install --frozen-lockfile --check-files --non-interactive - yarn build - mv dist public # rename the dist folder (result of npm run build) - cp -r dist/* public artifacts: paths: - public pages: stage: deploy script: - echo 'Pages deployment job' artifacts: paths: - public rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH No newline at end of file only: - main