File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,23 @@ cd $(dirname "$0")
10
10
11
11
set -e # Abort with error if anything here does not go as expected!
12
12
13
+ # Install SSH private key from a GH Secret
14
+ echo $GHCI_DEPLOY_KEY | base64 -d > esp8266_github_io_deploy
15
+ eval " $( ssh-agent -s) "
16
+ chmod 600 esp8266_github_io_deploy
17
+ ssh-add esp8266_github_io_deploy
18
+ mkdir -p ~ /.ssh
19
+ chmod go-w ~ /.ssh
20
+ echo -e " Host github.com\nStrictHostKeyChecking no\n" >> ~ /.ssh/config
21
+ chmod go-w ~ /.ssh/config
22
+
13
23
# Clone the Github pages repository
14
24
git clone git@github.com:esp8266/esp8266.github.io.git
15
25
pushd esp8266.github.io
16
26
17
27
# Copy from published release, ensure JSON valid
18
28
rm -f stable/package_esp8266com_index.json
19
- wget " https://github.com/esp8266/Arduino/releases/download/" $tag " /package_esp8266com_index.json" -O stable/package_esp8266com_index.json
29
+ wget https://github.com/esp8266/Arduino/releases/download/$tag /package_esp8266com_index.json -O stable/package_esp8266com_index.json
20
30
cat stable/package_esp8266com_index.json | jq empty
21
31
22
32
git add stable/package_esp8266com_index.json
You can’t perform that action at this time.
0 commit comments