add vendor.tgz to release (#301)

This commit is contained in:
mmetc
2023-06-19 11:04:02 +02:00
committed by GitHub
parent 26b8653136
commit c8322311d6
3 changed files with 15 additions and 4 deletions

View File

@@ -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
View File

@@ -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__/

View File

@@ -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: