Skip to content

Commit

Permalink
fix: add artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
sethyates committed Sep 21, 2022
1 parent 4c613c8 commit ddf7c1a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ author: 'Conventional Actions'
inputs:
name:
required: false
description: 'name of binary/container'
description: 'name of container'
artifact:
required: false
description: 'name of the artifact if different from the container name'
platforms:
required: false
description: 'comma-separated list of platforms to build'
Expand Down Expand Up @@ -50,16 +53,28 @@ runs:
path: docker
- name: Download ${{ inputs.name }} amd64 binary
uses: actions/download-artifact@v3
if: ${{ success() && inputs.download-artifacts == 'true' }}
if: ${{ success() && inputs.download-artifacts == 'true' && inputs.artifact == '' }}
with:
name: ${{ inputs.name }}_linux_amd64
path: .build/linux-amd64
- name: Download ${{ inputs.name }} arm64 docker
uses: actions/download-artifact@v3
if: ${{ success() && inputs.download-artifacts == 'true' }}
if: ${{ success() && inputs.download-artifacts == 'true' && inputs.artifact == '' }}
with:
name: ${{ inputs.name }}_linux_arm64
path: .build/linux-arm64
- name: Download ${{ inputs.artifact }} amd64 binary
uses: actions/download-artifact@v3
if: ${{ success() && inputs.download-artifacts == 'true' && inputs.artifact != '' }}
with:
name: ${{ inputs.artifact }}_linux_amd64
path: .build/linux-amd64
- name: Download ${{ inputs.artifact }} arm64 docker
uses: actions/download-artifact@v3
if: ${{ success() && inputs.download-artifacts == 'true' && inputs.artifact != '' }}
with:
name: ${{ inputs.artifact }}_linux_arm64
path: .build/linux-arm64
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
Expand Down

0 comments on commit ddf7c1a

Please sign in to comment.