mirror of
https://github.com/crowdsecurity/cs-firewall-bouncer.git
synced 2024-08-19 01:18:49 +03:00
fix vendor packaging (#321)
This commit is contained in:
8
.github/workflows/build-binary-package.yml
vendored
8
.github/workflows/build-binary-package.yml
vendored
@@ -29,13 +29,15 @@ jobs:
|
||||
with:
|
||||
go-version: 1.20.7
|
||||
|
||||
- name: Build all versions
|
||||
- name: Build all platforms
|
||||
run: |
|
||||
make vendor platform-all
|
||||
# build platform-all first so the .xz vendor file is not removed
|
||||
make platform-all vendor
|
||||
|
||||
- name: Upload to release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
tag_name="${GITHUB_REF##*/}"
|
||||
hub release edit $(find . -name "$PROGRAM_NAME*" -maxdepth 1 -printf "-a %p ") -a vendor.tgz -a *-vendor.tar.xz -m "" "$tag_name"
|
||||
# this will find the $PROGRAM_NAME-vendor.tar.xz file as well
|
||||
hub release edit $(find . -name "$PROGRAM_NAME*" -maxdepth 1 -printf "-a %p ") -a vendor.tgz -m "" "$tag_name"
|
||||
|
||||
Reference in New Issue
Block a user