mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
adopt the release workflow to the changed GH actions
This commit is contained in:
parent
a9996ecc40
commit
892e29f599
34
.github/workflows/Tasmota_build_master.yml
vendored
34
.github/workflows/Tasmota_build_master.yml
vendored
@ -137,10 +137,11 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
pattern: tasmota32*
|
pattern: tasmota32*
|
||||||
path: ./firmware
|
path: ./temp
|
||||||
- name: Display downloaded files
|
- name: Move safeboot files
|
||||||
run: |
|
run: |
|
||||||
ls -R ./firmware/
|
mkdir -p ./firmware/firmware
|
||||||
|
find ./temp -type f -exec cp -t ./firmware/firmware {} +
|
||||||
- name: Add "release" to footer
|
- name: Add "release" to footer
|
||||||
run: |
|
run: |
|
||||||
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT release-/g" ./tasmota/include/tasmota_version.h
|
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT release-/g" ./tasmota/include/tasmota_version.h
|
||||||
@ -178,10 +179,11 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
pattern: tasmota32*
|
pattern: tasmota32*
|
||||||
path: ./firmware
|
path: ./temp
|
||||||
- name: Display downloaded files
|
- name: Move safeboot files
|
||||||
run: |
|
run: |
|
||||||
ls -R ./firmware/
|
mkdir -p ./firmware/firmware
|
||||||
|
find ./temp -type f -exec cp -t ./firmware/firmware {} +
|
||||||
- name: Add "release" to footer
|
- name: Add "release" to footer
|
||||||
run: |
|
run: |
|
||||||
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT release-/g" ./tasmota/include/tasmota_version.h
|
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT release-/g" ./tasmota/include/tasmota_version.h
|
||||||
@ -199,28 +201,24 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Download Tasmota firmwares
|
- name: Download all Tasmota artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
pattern: tasmota*
|
pattern: tasmota*
|
||||||
path: ./mv_firmware
|
path: ./temp
|
||||||
- name: Download safeboot firmwares
|
- name: Move files
|
||||||
uses: actions/download-artifact@v4
|
run: |
|
||||||
with:
|
mkdir -p ./release
|
||||||
pattern: tasmota32*
|
find ./temp -type f -exec cp -t ./release {} +
|
||||||
path: ./mv_firmware
|
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -R ./mv_firmware/
|
run: ls -R ./release/
|
||||||
- name: Zip all map.gz files in one file -> map_all.zip
|
|
||||||
run: 7z a -mx=9 -tzip -xr'!.*' map_all.zip mv_firmware/map
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: jason2866/action-gh-release@v1.2
|
uses: jason2866/action-gh-release@v1.2
|
||||||
#if: startsWith(github.ref, 'refs/tags/')
|
#if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.run_number }}
|
tag_name: ${{ github.run_number }}
|
||||||
files: |
|
files: |
|
||||||
./mv_firmware/firmware/*
|
./release/tasmota*
|
||||||
map_all.zip
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user