mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
Copy released JSON to board URL, not new one (#8182)
* Copy released JSON to board URL, not new one Fixes #8180 The draft release generates a ZIP and JSON. Instead of rebuilding the ZIP on the publish step (which may result in a different SHA256 due to file time differences in the new ZIP), just copy the one from the published release directly. Also clean up and remove unneeded environment variables and CI steps. * Be more paranoid about JSON format, check after d/l
This commit is contained in:
committed by
GitHub
parent
421d02eec1
commit
d8b70d4a99
20
.github/workflows/release-to-publish.yml
vendored
20
.github/workflows/release-to-publish.yml
vendored
@ -36,26 +36,6 @@ jobs:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Set GIT tag name
|
||||
run: |
|
||||
TRAVIS_TAG="$(git describe --exact-match --tags)"
|
||||
echo "TRAVIS_TAG=${TRAVIS_TAG}" >> $GITHUB_ENV
|
||||
- name: Deploy updated JSON
|
||||
env:
|
||||
TRAVIS_BUILD_DIR: ${{ github.workspace }}
|
||||
BUILD_TYPE: package
|
||||
CI_GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
|
||||
GHCI_DEPLOY_KEY: ${{ secrets.GHCI_DEPLOY_KEY }}
|
||||
run: |
|
||||
bash ./tests/ci/build_package.sh
|
||||
# Only the regenerated JSON file will be used, but it's simpler
|
||||
# than looking for it in a GH release.
|
||||
bash ./package/deploy_package_index.sh
|
||||
|
||||
|
Reference in New Issue
Block a user