Update .gitlab-ci.yml
This commit is contained in:
@@ -19,10 +19,12 @@ pages:
|
|||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- npm install # Install all dependencies
|
- npm install # Install all dependencies
|
||||||
|
- npm install -g less
|
||||||
- npm run build --prod # Build for prod
|
- npm run build --prod # Build for prod
|
||||||
- cp public/index.html public/404.html # Not necessary, but helps with https://medium.com/@pshrmn/demystifying-single-page-applications-3068d0555d46
|
- cp public/index.html public/404.html # Not necessary, but helps with https://medium.com/@pshrmn/demystifying-single-page-applications-3068d0555d46
|
||||||
- mv public _public # CRA and gitlab pages both use the public folder. Only do this in a build pipeline.
|
- mv public _public # CRA and gitlab pages both use the public folder. Only do this in a build pipeline.
|
||||||
- mv build public # Move build files to public dir for Gitlab Pages
|
- mv build public # Move build files to public dir for Gitlab Pages
|
||||||
|
- lessc src_less/main.less /public/main.css
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public # The built files for Gitlab Pages to serve
|
- public # The built files for Gitlab Pages to serve
|
||||||
|
|||||||
Reference in New Issue
Block a user