ci/cd: fix github workflow to upload release binaries

Fixes issue #332

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
Ramkumar Chinchani
2021-12-15 22:14:53 +00:00
committed by Ramkumar Chinchani
parent c86f44cc53
commit 50a0831f1b
2 changed files with 16 additions and 6 deletions
+7 -5
View File
@@ -46,7 +46,7 @@ jobs:
- name: Run build and test
timeout-minutes: 30
run: |
cd $GITHUB_WORKSPACE && make
cd $GITHUB_WORKSPACE && make && make ARCH=arm64 binary-arch-minimal && make ARCH=arm64 binary-arch
env:
S3MOCK_ENDPOINT: localhost:4566
AWS_ACCESS_KEY_ID: fake
@@ -57,11 +57,13 @@ jobs:
- if: github.event_name == 'release' && github.event.action == 'published'
name: Publish artifacts on releases
uses: Roang-zero1/github-upload-release-artifacts-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
args: bin/zot*
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/zot*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
push-image:
if: github.event_name == 'release' && github.event.action== 'published'