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

Commit

Permalink
pipeline: rewrite now deployment script with travis (#46)
Browse files Browse the repository at this point in the history
* pipeline: temporary change of deployments to fix now

* pipeline: explicit mark now parameters with equal sign

* pipeline: rewrite now deployment script with travis

This should fix all current issues with deployments, aliasing and cleaning up.

* pipeline: revert branch limitation of staging deployment
  • Loading branch information
byCedric authored Oct 14, 2018
1 parent 935ca46 commit e68930e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ after_success:
deploy:
- provider: script
skip_cleanup: true
script: >
script: >-
npx semantic-release --dry-run --branch develop &&
npm run build &&
cd build &&
npx now -t $NOW_TOKEN -T personal -A ../now.staging.json &&
npx now alias -A ../now.staging.json
cp now.staging.json now.json &&
npx now deploy --token=$NOW_TOKEN --team=personal --name=bycedric-website-staging --regions=bru ./build &&
npx now alias --token=$NOW_TOKEN --team=personal &&
npx now rm --token=$NOW_TOKEN --team=personal --safe --yes bycedric-website-staging
on:
condition: $TRAVIS_OS_NAME = linux
branch: develop
Expand Down

0 comments on commit e68930e

Please sign in to comment.