mirror of
https://github.com/crowdsecurity/cs-firewall-bouncer.git
synced 2024-08-19 01:18:49 +03:00
add vendor.tgz to release (#301)
This commit is contained in:
4
.github/workflows/build-binary-package.yml
vendored
4
.github/workflows/build-binary-package.yml
vendored
@@ -31,11 +31,11 @@ jobs:
|
||||
|
||||
- name: Build all versions
|
||||
run: |
|
||||
make platform-all
|
||||
make vendor platform-all
|
||||
|
||||
- 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 ") -m "" "$tag_name"
|
||||
hub release edit $(find . -name "$PROGRAM_NAME*" -maxdepth 1 -printf "-a %p ") -a vendor.tgz -m "" "$tag_name"
|
||||
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -4,8 +4,10 @@
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
# Dependencies are not vendored by default, but a tarball is created by "make vendor"
|
||||
# and provided in the release. Used by freebsd, gentoo, etc.
|
||||
vendor/
|
||||
vendor.tgz
|
||||
|
||||
# Python
|
||||
__pycache__/
|
||||
|
||||
9
Makefile
9
Makefile
@@ -89,6 +89,15 @@ func-tests: build
|
||||
|
||||
RELDIR = $(BINARY_NAME)-$(BUILD_VERSION)
|
||||
|
||||
.PHONY: vendor
|
||||
vendor:
|
||||
$(GOCMD) mod vendor
|
||||
tar czf vendor.tgz vendor
|
||||
|
||||
.PHONY: vendor-remove
|
||||
vendor-remove:
|
||||
$(RM) -r vendor vendor.tgz
|
||||
|
||||
# Called during platform-all, to reuse the directory for other platforms
|
||||
.PHONY: clean-release-dir
|
||||
clean-release-dir:
|
||||
|
||||
Reference in New Issue
Block a user