File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,23 @@ cd $(dirname "$0")
1010
1111set -e # Abort with error if anything here does not go as expected!
1212
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+
1323# Clone the Github pages repository
1424git clone git@github.com:esp8266/esp8266.github.io.git
1525pushd esp8266.github.io
1626
1727# Copy from published release, ensure JSON valid
1828rm -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
2030cat stable/package_esp8266com_index.json | jq empty
2131
2232git add stable/package_esp8266com_index.json
You can’t perform that action at this time.
0 commit comments