Skip to content

Update Deploy releases #3

Update Deploy releases

Update Deploy releases #3

Workflow file for this run

name: Deploy Releases
# Trigger the workflow on pushes to tags matching 'v*.*.*'
on:
push:
tags:
- 'v*.*.*'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up ESP-IDF and Build
uses: espressif/esp-idf-ci-action@v1.1.0
with:
esp_idf_version: v5.2.1
target: esp32s3
path: 'ESP32/Digifiz/'
- name: Collect Build Artifacts
uses: actions/upload-artifact@v3
with:
name: firmware
path: |
ESP32/Digifiz/build/*.bin
ESP32/Digifiz/build/bootloader/*.bin
ESP32/Digifiz/build/partition_table/*.bin
ESP32/Digifiz/build/*.elf
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Automated release for `${{ github.ref }}`.
draft: false
prerelease: false
- name: Upload Firmware to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ESP32/Digifiz/build/Digifiz.bin
asset_name: Digifiz.bin
asset_content_type: application/octet-stream
- name: Upload Bootloader to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ESP32/Digifiz/build/bootloader/bootloader.bin
asset_name: bootloader.bin
asset_content_type: application/octet-stream
- name: Upload Partition Table to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ESP32/Digifiz/build/partition_table/partition_table.bin
asset_name: partition_table.bin
asset_content_type: application/octet-stream
- name: Upload OTA Initial to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ESP32/Digifiz/build/ota_data_initial.bin
asset_name: ota_data_initial.bin
asset_content_type: application/octet-stream
- name: Upload ELF to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ESP32/Digifiz/build/Digifiz.elf
asset_name: Digifiz.elf
asset_content_type: application/octet-stream