Build the vm so we can deploy it

Whoops.

Also move the git deploy setup to before_deploy.
This commit is contained in:
Ray Schamp 2017-07-19 12:04:22 -04:00
parent 55d0b2650c
commit 7eae7e1957

View file

@ -19,15 +19,18 @@ jobs:
node_js: 6
- stage: release
node_js: 6
script: true
before_deploy: npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s)
env: NPM_SCRIPT=build
before_deploy:
- npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s)
- git config --global user.email $(git log --pretty=format:"%ae" -n1)
- git config --global user.name $(git log --pretty=format:"%an" -n1)
deploy:
- provider: script
"on":
all_branches: true
condition: $RELEASE_BRANCHES =~ $TRAVIS_BRANCH
skip_cleanup: true
script: git config --global user.email $(git log --pretty=format:"%ae" -n1) && git config --global user.name $(git log --pretty=format:"%an" -n1) && npm run --silent deploy -- -x -r $GH_PAGES_REPO
script: npm run --silent deploy -- -x -r $GH_PAGES_REPO
- provider: npm
"on":
all_branches: true