CI: alternate vendor file (xz compression and version number) (#2425)

This commit is contained in:
mmetc 2023-08-25 17:02:00 +02:00 committed by GitHub
parent 32f196a774
commit 0c9943b740
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -42,4 +42,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
tag_name="${GITHUB_REF##*/}" tag_name="${GITHUB_REF##*/}"
hub release edit -a crowdsec-release.tgz -a vendor.tgz -m "" "$tag_name" hub release edit -a crowdsec-release.tgz -a vendor.tgz -a *-vendor.tar.xz -m "" "$tag_name"

View file

@ -209,14 +209,15 @@ localstack-stop:
# build vendor.tgz to be distributed with the release # build vendor.tgz to be distributed with the release
.PHONY: vendor .PHONY: vendor
vendor: vendor: vendor-remove
$(GO) mod vendor $(GO) mod vendor
tar -czf vendor.tgz vendor tar czf vendor.tgz vendor
tar --create --auto-compress --file=$(RELDIR)-vendor.tar.xz vendor
# remove vendor directories and vendor.tgz # remove vendor directories and vendor.tgz
.PHONY: vendor-remove .PHONY: vendor-remove
vendor-remove: vendor-remove:
$(RM) vendor vendor.tgz $(RM) vendor vendor.tgz *-vendor.tar.xz
.PHONY: package .PHONY: package
package: package: