Update main.yml
This commit is contained in:
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@@ -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
|
|
||||||
steps:
|
|
||||||
- name: Download Firmware Files
|
|
||||||
uses: actions/download-artifact@v2
|
|
||||||
with:
|
with:
|
||||||
path: release
|
path: .pio/build/esp32dev/firmware.bin
|
||||||
- name: Release Firmware
|
name: awtrix_light.bin
|
||||||
uses: ncipollo/release-action@v1
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
|
||||||
artifacts: release/*/*.bin
|
|
||||||
generateReleaseNotes: true
|
|
||||||
allowUpdates: true
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user