File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,3 +35,4 @@ dvm-helper/dvm-helper
3535
3636# Aliases
3737alias
38+ * .pem
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ script:
1111- make cross-build
1212before_deploy :
1313- openssl aes-256-cbc -K $encrypted_79d16d43cbac_key -iv $encrypted_79d16d43cbac_iv -in script/travis.deploy.pem.enc -out script/travis.deploy.pem -d
14+ - chmod 600 script/travis.deploy.pem
15+ - eval "$(ssh-agent -s)" && ssh-add script/travis.deploy.pem
1416deploy :
1517- provider : script
1618 script : make deploy
Original file line number Diff line number Diff line change 22set -euo pipefail
33
44rm -fr _deploy/ & > /dev/null
5- git clone --branch gh-pages --depth 1 https://github.com/howtowhale/dvm.git _deploy
6- cp -R bin/dvm/$( VERSION) _deploy/downloads/
7- cp -R bin/dvm/$( PERMALINK) _deploy/downloads/
5+ git clone --branch gh-pages --depth 1 git@github.com:howtowhale/dvm.git _deploy
6+
7+ cp -R bin/dvm/$VERSION _deploy/downloads/
8+ cp -R bin/dvm/$PERMALINK _deploy/downloads/
89cd _deploy/
910git add downloads/
10- git commit --author " Travis CI <travis@travis-ci.org>" -m " Publish $VERSION from Travis Build #$TRAVIS_BUILD_NUMBER "
11- # PKEY=.travis.deploy.pem git push
11+
12+ git config user.name " Travis CI"
13+ git config user.email " travis@travis-ci.org"
14+ git commit -m " Publish $VERSION from Travis Build #${TRAVIS_BUILD_NUMBER:- 1} "
15+ git push
You can’t perform that action at this time.
0 commit comments