Skip to content

Instantly share code, notes, and snippets.

@waynema02
Created April 17, 2017 10:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waynema02/93dbf45c415047048fa5aca1f908a55c to your computer and use it in GitHub Desktop.
Save waynema02/93dbf45c415047048fa5aca1f908a55c to your computer and use it in GitHub Desktop.
Publish your create-react-app website via Gitlab CI. #gitlab #git #deploy #ci
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