remove requirement for version in RELEASE.json, the version is guessed from the git tag (#64)

This commit is contained in:
Thibault "bui" Koechlin 2020-06-03 15:59:13 +02:00 committed by GitHub
parent 293d098fa9
commit 051a1b427a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 7 deletions

View file

@ -17,11 +17,6 @@ jobs:
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Check tag == json version
run: |
jsonver=$(cat RELEASE.json | jq -r .Version)
lasttag=$(git for-each-ref --sort=-v:refname --count=1 --format '%(refname)' | cut -d '/' -f3)
if [ ${jsonver} != ${lasttag} ] ; then echo "version mismatch : ${jsonver} in json, ${lasttag} in git" ; exit 2 ; else echo "${jsonver} == ${lasttag}" ; fi
- name: Build the binaries
run: make release
- name: Upload to release

View file

@ -17,7 +17,7 @@ REQUIRE_GOVERSION="1.13"
#Current versioning information from env
export BUILD_VERSION=$(shell cat RELEASE.json | jq -r .Version)
export BUILD_VERSION="$(shell git for-each-ref --sort=-v:refname --count=1 --format '%(refname)' | cut -d '/' -f3)"
export BUILD_GOVERSION="$(shell go version | cut -d " " -f3 | sed -r 's/[go]+//g')"
export BUILD_CODENAME=$(shell cat RELEASE.json | jq -r .CodeName)
export BUILD_TIMESTAMP=$(shell date +%F"_"%T)

View file

@ -1,4 +1,3 @@
{
"Version": "v0.1.2",
"CodeName": "beta"
}