File tree 3 files changed +57
-13
lines changed
3 files changed +57
-13
lines changed Original file line number Diff line number Diff line change @@ -44,19 +44,28 @@ script:
44
44
- $TRAVIS_BUILD_DIR/tests/common.sh
45
45
46
46
deploy :
47
- provider : releases
48
- prerelease : true
49
- skip_cleanup : true
50
- api_key :
51
- secure : A4FBmqyhlzy33oPeZVolg2Q/A3ZcJ3WnRQqQJ3NAPy+qGM5xcboOYtwcLL9vKaHZGfUB7lUP9QVZFGou1Wrmo9DnPvAoe3+XvCaDRGzVMxeIpu7UStbBD4Knbh98tlbMvZCXYRlT4VcusI9bMLK6UWw4sMdPislBh2FEfglTiag=
52
- file_glob : true
53
- file :
54
- - package/versions/$TRAVIS_TAG/esp8266-$TRAVIS_TAG.zip
55
- - package/versions/$TRAVIS_TAG/package_esp8266com_index.json
56
- on :
57
- repo : esp8266/Arduino
58
- tags : true
59
- condition : " $BUILD_TYPE = package"
47
+ - provider : releases
48
+ draft : true
49
+ skip_cleanup : true
50
+ api_key :
51
+ secure : A4FBmqyhlzy33oPeZVolg2Q/A3ZcJ3WnRQqQJ3NAPy+qGM5xcboOYtwcLL9vKaHZGfUB7lUP9QVZFGou1Wrmo9DnPvAoe3+XvCaDRGzVMxeIpu7UStbBD4Knbh98tlbMvZCXYRlT4VcusI9bMLK6UWw4sMdPislBh2FEfglTiag=
52
+ file_glob : true
53
+ file :
54
+ - package/versions/$TRAVIS_TAG/esp8266-$TRAVIS_TAG.zip
55
+ - package/versions/$TRAVIS_TAG/package_esp8266com_index.json
56
+ on :
57
+ repo : esp8266/Arduino
58
+ tags : true
59
+ condition : " $BUILD_TYPE = package"
60
+
61
+ - provider : script
62
+ skip_cleanup : true
63
+ script : bash package/deploy_package_index.sh
64
+ on :
65
+ repo : esp8266/Arduino
66
+ tags : true
67
+ condition : " $BUILD_TYPE = package"
68
+
60
69
61
70
notifications :
62
71
email :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # This script updates package index hosted on arduino.esp8266.com.
4
+ # Normally is run by Travis CI for tagged versions, as a deploy step.
5
+
6
+ tag=` git describe --tags`
7
+
8
+ cd $( dirname " $0 " )
9
+
10
+ # Decrypt and install SSH private key.
11
+ # "encrypted_xxx_key" and "encrypted_xxx_iv" are environment variables
12
+ # known to Travis CI builds.
13
+ openssl aes-256-cbc -K $encrypted_3f14690ceb9b_key -iv $encrypted_3f14690ceb9b_iv -in arduino-esp8266-travis.enc -out arduino-esp8266-travis -d
14
+ eval " $( ssh-agent -s) "
15
+ chmod 600 arduino-esp8266-travis
16
+ ssh-add arduino-esp8266-travis
17
+
18
+ # Set SSH server public key
19
+ echo " arduino.esp8266.com,104.131.82.128 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAvoxsdf1jJ1XX7RrCtAQyjvZ3b33bWYfB/XDvEMLtxnJhZr+P/wa7yuZ+UJJ1wuJc+wcIMBNZ2Zz/MbdRMey7A=" \
20
+ >> $HOME /.ssh/known_hosts
21
+
22
+ branch=stable
23
+ ssh_dl_server=nodeuser@arduino.esp8266.com
24
+ base_dir=apps/download_files/download
25
+
26
+ # Upload package_esp8266com_index.json
27
+ ssh $ssh_dl_server " mkdir -p $base_dir /versions/$tag "
28
+ scp versions/$tag /package_esp8266com_index.json $ssh_dl_server :$base_dir /versions/$tag /
29
+
30
+ # Change symlink for stable version
31
+ oldver=$( ssh $ssh_dl_server " readlink $base_dir /$branch " )
32
+ newver=" versions/$tag "
33
+ echo " Changing version of $branch from $oldver to $newver "
34
+
35
+ ssh $ssh_dl_server " pushd apps/download_files/download && ln -snf versions/$tag $branch "
You can’t perform that action at this time.
0 commit comments