CI: alternate vendor file (xz compression and version number) (#2425)
This commit is contained in:
parent
32f196a774
commit
0c9943b740
2 changed files with 5 additions and 4 deletions
|
@ -42,4 +42,4 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
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"
|
||||
|
|
7
Makefile
7
Makefile
|
@ -209,14 +209,15 @@ localstack-stop:
|
|||
|
||||
# build vendor.tgz to be distributed with the release
|
||||
.PHONY: vendor
|
||||
vendor:
|
||||
vendor: vendor-remove
|
||||
$(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
|
||||
.PHONY: vendor-remove
|
||||
vendor-remove:
|
||||
$(RM) vendor vendor.tgz
|
||||
$(RM) vendor vendor.tgz *-vendor.tar.xz
|
||||
|
||||
.PHONY: package
|
||||
package:
|
||||
|
|
Loading…
Reference in a new issue