File tree Expand file tree Collapse file tree 2 files changed +5
-32
lines changed Expand file tree Collapse file tree 2 files changed +5
-32
lines changed Original file line number Diff line number Diff line change 36
36
run :
37
37
shell : bash
38
38
steps :
39
- - uses : actions/checkout@v2
40
- with :
41
- submodules : true
42
- fetch-depth : 0
43
- - uses : actions/setup-python@v2
44
- with :
45
- python-version : ' 3.x'
46
- - name : Set GIT tag name
47
- run : |
48
- TRAVIS_TAG="$(git describe --exact-match --tags)"
49
- echo "TRAVIS_TAG=${TRAVIS_TAG}" >> $GITHUB_ENV
50
39
- name : Deploy updated JSON
51
- env :
52
- TRAVIS_BUILD_DIR : ${{ github.workspace }}
53
- BUILD_TYPE : package
54
- CI_GITHUB_API_KEY : ${{ secrets.GITHUB_TOKEN }}
55
- GHCI_DEPLOY_KEY : ${{ secrets.GHCI_DEPLOY_KEY }}
56
40
run : |
57
- bash ./tests/ci/build_package.sh
58
- # Only the regenerated JSON file will be used, but it's simpler
59
- # than looking for it in a GH release.
60
41
bash ./package/deploy_package_index.sh
61
-
Original file line number Diff line number Diff line change @@ -10,22 +10,15 @@ 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
-
23
13
# Clone the Github pages repository
24
14
git clone
[email protected] :esp8266/esp8266.github.io.git
25
15
pushd esp8266.github.io
26
16
27
- # Update the package index
28
- cp ../versions/* /package_esp8266com_index.json stable/package_esp8266com_index.json
17
+ # Copy from published release, ensure JSON valid
18
+ 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
20
+ cat stable/package_esp8266com_index.json | jq empty
21
+
29
22
git add stable/package_esp8266com_index.json
30
23
31
24
# Commit and push the changes
You can’t perform that action at this time.
0 commit comments