Merge pull request #62 from fsih/yaml

Add before deploy script that appends version
This commit is contained in:
DD Liu 2017-10-16 10:40:46 -04:00 committed by GitHub
commit 2d7860f495

View file

@ -14,6 +14,9 @@ install:
before_deploy: before_deploy:
- git config --global user.email $(git log --pretty=format:"%ae" -n1) - git config --global user.email $(git log --pretty=format:"%ae" -n1)
- git config --global user.name $(git log --pretty=format:"%an" -n1) - git config --global user.name $(git log --pretty=format:"%an" -n1)
- VPKG=$($(npm bin)/json -f package.json version)
- export VERSION=${VPKG/%?/}$(date +%Y%m%d%H%M%S)
- npm --no-git-tag-version version $VERSION
deploy: deploy:
- provider: script - provider: script
on: on: