Release #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
inputs: | |
version_tag: | |
description: 'Version tag' | |
required: true | |
type: string | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
env: | |
version_tag: ${{ github.ref_type == 'tag' && github.ref_name || inputs.version_tag }} | |
steps: | |
- name: Download merged.hex | |
uses: actions/download-artifact@v4 | |
with: | |
name: merged.hex | |
- name: Download app_update.bin | |
uses: actions/download-artifact@v4 | |
with: | |
name: app_update.bin | |
- name: Upload merged.hex | |
uses: Shopify/[email protected] | |
with: | |
name: merged-${{ env.version_tag }}.hex | |
path: merged.hex | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload app_update.bin | |
uses: Shopify/[email protected] | |
with: | |
name: app_update-${{ env.version_tag }}.bin | |
path: app_update.bin | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |