Created
March 2, 2021 22:03
-
-
Save gino8080/5b875319ca2e0af2027a14add8b4a09c to your computer and use it in GitHub Desktop.
Publish your create-react-app website via Gitlab CI. tags: #gitlab #git #deploy #ci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:6.5.0 # can be upgraded, depending on your node version used | |
pages: | |
stage: deploy | |
script: | |
- npm install | |
- npm run build | |
- rm -rf public | |
- mv build public | |
artifacts: | |
paths: | |
- public # mandatory, other folder won't work | |
only: | |
- master # or dev, the branch you want to publish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment