Skip to content

Commit 0972c1e

Browse files
author
Tim Etchells
committed
remove github deploy
1 parent eb0d45f commit 0972c1e

File tree

2 files changed

+30
-12
lines changed

2 files changed

+30
-12
lines changed

.travis.yml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,40 @@ before_install:
4141
script:
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

publish-artifactory.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
if [[ "$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
912
fi
1013

1114
set -e

0 commit comments

Comments
 (0)