File tree Expand file tree Collapse file tree 2 files changed +30
-12
lines changed
Expand file tree Collapse file tree 2 files changed +30
-12
lines changed Original file line number Diff line number Diff line change @@ -41,25 +41,40 @@ before_install:
4141script :
4242- vsce package
4343
44- before_deploy :
44+ after_success :
4545- git config --local user.name "$user_name"
4646- git config --local user.email "$user_email"
4747
48- - export TRAVIS_TAG="nightly-$(date +'%F-%H%M')"
49- - git tag $TRAVIS_TAG
48+ - export tag="nightly-$(date +'%F-%H%M')"
5049- export artifact_name="$(basename *.vsix)"
5150# Will resolve to something like "microclimate-tools-18.12.0_nightly-2018-12-07.vsix"
52- - export tagged_artifact_name="${artifact_name/.vsix/_$TRAVIS_TAG .vsix}"
51+ - export tagged_artifact_name="${artifact_name/.vsix/_$tag .vsix}"
5352
53+ # Back to repo root
5454- cd ..
5555- cp -v dev/*.vsix "./$tagged_artifact_name"
5656- ./publish-artifactory.sh || true
5757
58- deploy :
59- on :
60- branch : master
61- condition : $TRAVIS_EVENT_TYPE = cron
62- provider : releases
63- api_key : " $gh_apikey"
64- file : " $tagged_artifact_name"
65- skip_cleanup : true
58+ # before_deploy:
59+ # - git config --local user.name "$user_name"
60+ # - git config --local user.email "$user_email"
61+
62+ # - export TRAVIS_TAG="nightly-$(date +'%F-%H%M')"
63+ # - git tag $TRAVIS_TAG
64+ # - export artifact_name="$(basename *.vsix)"
65+ # # Will resolve to something like "microclimate-tools-18.12.0_nightly-2018-12-07.vsix"
66+ # - export tagged_artifact_name="${artifact_name/.vsix/_$TRAVIS_TAG.vsix}"
67+
68+ # Back to repo root
69+ # - cd ..
70+ # - cp -v dev/*.vsix "./$tagged_artifact_name"
71+ # - ./publish-artifactory.sh || true
72+
73+ # deploy:
74+ # on:
75+ # branch: master
76+ # condition: $TRAVIS_EVENT_TYPE = cron
77+ # provider: releases
78+ # api_key: "$gh_apikey"
79+ # file: "$tagged_artifact_name"
80+ # skip_cleanup: true
Original file line number Diff line number Diff line change 66if [[ " $do_artifactory_deploy " != " true" ]]; then
77 echo " $( basename $0 ) : do_artifactory_deploy is not set to 'true', skipping."
88 exit 0
9+ elif [[ " $TRAVIS_EVENT_TYPE " != " cron" ]]; then
10+ echo " $( basename $0 ) : not a cronjob, skipping."
11+ exit 0
912fi
1013
1114set -e
You can’t perform that action at this time.
0 commit comments