Add support for custom artifact name

This commit is contained in:
Albert Y 2022-04-22 08:17:40 +08:00 committed by Pete Johanson
parent 9e39585f85
commit d72a7e05aa

View file

@ -18,6 +18,11 @@ on:
default: "bin" default: "bin"
required: false required: false
type: string type: string
artifact_name:
description: 'Artifact output file name'
default: 'firmware'
required: false
type: string
jobs: jobs:
matrix: matrix:
@ -117,5 +122,5 @@ jobs:
- name: Archive (${{ steps.variables.outputs.display-name }}) - name: Archive (${{ steps.variables.outputs.display-name }})
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: firmware name: ${{ inputs.artifact_name }}
path: build/artifacts path: build/artifacts