Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresKasekamp committed Dec 18, 2023
1 parent e64334a commit e7a6f46
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
image: node:16.5.0
pages:
stage: deploy
cache:
key:
files:
- package-lock.json
prefix: npm
paths:
- node_modules/
script:
- mkdir .public
- cp -r * .public
- mv .public public
- npm install
- npm run build
- cp -a dist/. public/
artifacts:
paths:
- public
only:
- main
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

0 comments on commit e7a6f46

Please sign in to comment.