.github/workflows/build.yml aktualisiert
Add Unique ID
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -31,11 +31,17 @@ jobs:
|
||||
cp .pio/build/esp32thing_CI/firmware.bin firmware.bin
|
||||
cp .pio/build/esp32thing_CI/spiffs.bin spiffs.bin
|
||||
|
||||
- name: Generate tag name
|
||||
id: tag
|
||||
run: |
|
||||
TAG="esp32thing-$(date +'%Y%m%d-%H%M%S')-${GITHUB_SHA::7}"
|
||||
echo "tag_name=$TAG" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: "esp32thing Firmware ${{ github.ref_name }}"
|
||||
tag_name: "${{ github.ref_name }}"
|
||||
name: "esp32thing Firmware ${{ steps.tag.outputs.tag_name }}"
|
||||
tag_name: "${{ steps.tag.outputs.tag_name }}"
|
||||
files: |
|
||||
firmware.bin
|
||||
spiffs.bin
|
||||
|
||||
Reference in New Issue
Block a user