Skip to content

Commit

Permalink
build.yml: fix upload to release
Browse files Browse the repository at this point in the history
  • Loading branch information
Markson committed Jun 17, 2023
1 parent a0d091a commit c1fa540
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Download wing vendor
run: go mod vendor
working-directory: wing

- name: Create full source ZIP archive and Signature
run: |
zip -9vr daed-full-src.zip . -x .git/\*
Expand Down Expand Up @@ -176,12 +176,21 @@ jobs:
- name: Smoking test
if: matrix.goarch == 'amd64' && matrix.goamd64 == 'v1'
run: ./bundled/${{ steps.get_filename.outputs.BUNDLE_NAME }} --version

- name: Upload artifact - bundle
if: ${{ github.event_name != 'release' }}
uses: actions/upload-artifact@v3
with:
name: ${{ steps.get_filename.outputs.BUNDLE_NAME }}
path: bundled/*

- name: Create binary ZIP archive
if: ${{ github.event_name == 'release' }}
run: |
zip -9vr ./${{ steps.get_filename.outputs.BUNDLE_NAME }}.zip ./bundled/*
- name: Upload ZIP archive
if: ${{ github.event_name == 'release' }}
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.5
with:
path: |
Expand Down Expand Up @@ -253,7 +262,12 @@ jobs:
with:
tag_name: ${{ github.ref }}
files: |
release/*
*zip
*tar.gz
*pkg.tar.zst
*deb
*rpm
*dgst
generate_release_notes: true

upload-prerelease:
Expand Down Expand Up @@ -295,6 +309,11 @@ jobs:
with:
tag_name: Prerelease
files: |
release/*
*zip
*tar.gz
*pkg.tar.zst
*deb
*rpm
*dgst
prerelease: true
generate_release_notes: true

0 comments on commit c1fa540

Please sign in to comment.