Update main.yml

This commit is contained in:
Stephan Mühl
2023-03-22 13:09:38 +01:00
committed by GitHub
parent e852b08dc1
commit 22cac4d8ec

View File

@@ -48,8 +48,8 @@ jobs:
- name: Run PlatformIO - name: Run PlatformIO
run: pio run run: pio run
- name: Move firmware to output directory - name: Copy firmware to output directory
run: mv .pio/build/esp32dev/firmware.bin ./flasher/firmware run: cp .pio/build/esp32dev/firmware.bin ./flasher/firmware
- name: Create new manifest.json - name: Create new manifest.json
run: cat flasher/firmware/manifest.json | jq '.version="${{ steps.version_number.outputs.library_version }}"' > flasher/firmware/new-manifest.json run: cat flasher/firmware/manifest.json | jq '.version="${{ steps.version_number.outputs.library_version }}"' > flasher/firmware/new-manifest.json
@@ -62,19 +62,8 @@ jobs:
with: with:
folder: flasher folder: flasher
release: - name: Download build files
needs: compile_firmware uses: actions/download-artifact@v3
runs-on: ubuntu-latest with:
steps: path: .pio/build/esp32dev/firmware.bin
- name: Download Firmware Files name: awtrix_light.bin
uses: actions/download-artifact@v2
with:
path: release
- name: Release Firmware
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
artifacts: release/*/*.bin
generateReleaseNotes: true
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}