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

Commit

Permalink
pipeline: refactor to single-script command in deployment (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric authored Oct 14, 2018
1 parent aaff84b commit 3d5777a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,18 @@ after_success:
deploy:
- provider: script
skip_cleanup: true
script:
- npx semantic-release --dry-run --branch develop
- npm run build
- npx now ./build -t $NOW_TOKEN -T personal -A ./now.staging.json
- npx now alias -A ./now.staging.json
script: |
npx semantic-release --dry-run --branch develop && \
npm run build && \
npx now ./build -t $NOW_TOKEN -T personal -A ./now.staging.json && \
npx now alias -A ./now.staging.json
on:
condition: $TRAVIS_OS_NAME = linux
branch: develop
node: lts/*
- provider: script
skip_cleanup: true
script:
- npx semantic-release
script: npx semantic-release
on:
condition: $TRAVIS_OS_NAME = linux
branch: master
Expand Down

0 comments on commit 3d5777a

Please sign in to comment.