Update main.yml
This commit is contained in:
37
.github/workflows/main.yml
vendored
37
.github/workflows/main.yml
vendored
@@ -62,8 +62,37 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
folder: flasher
|
folder: flasher
|
||||||
|
|
||||||
- name: Download build files
|
create_release:
|
||||||
uses: actions/download-artifact@v3
|
needs: compile_firmware
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Download firmware
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
path: .pio/build/esp32dev/
|
name: firmware
|
||||||
name: firmware.bin
|
path: firmware
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ steps.version_number.outputs.library_version }}
|
||||||
|
release_name: Release ${{ steps.version_number.outputs.library_version }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
|
- name: Upload Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./firmware/firmware.bin
|
||||||
|
asset_name: firmware.bin
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|||||||
Reference in New Issue
Block a user