[action] Rename some steps and fix version calculation for actions

This commit is contained in:
max furman 2021-02-22 21:25:40 -08:00
parent 9652a89629
commit 1748b2b6c6
2 changed files with 13 additions and 4 deletions

View file

@ -68,7 +68,7 @@ jobs:
prerelease: ${{ steps.is_prerelease.outputs.IS_PRERELEASE }}
goreleaser:
name: Create Release & Upload Assets
name: Upload Assets To Github w/ goreleaser
runs-on: ubuntu-20.04
needs: create_release
steps:
@ -92,7 +92,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PAT }}
release_deb:
name: Build & Release Debian package
name: Build & Upload Debian Package To Github
runs-on: ubuntu-20.04
needs: create_release
steps:

View file

@ -20,7 +20,7 @@ all: lint test build
ci: lintcgo testcgo build
.PHONY: all travis
.PHONY: all ci
#########################################
# Bootstrapping
@ -39,6 +39,15 @@ bootstra%:
# If TRAVIS_TAG is set then we know this ref has been tagged.
ifdef TRAVIS_TAG
VERSION := $(TRAVIS_TAG)
NOT_RC := $(shell echo $(VERSION) | grep -v -e -rc)
ifeq ($(NOT_RC),)
PUSHTYPE := release-candidate
else
PUSHTYPE := release
endif
# GITHUB Actions
else ifdef GITHUB_REF
VERSION := $(shell echo $(GITHUB_REF) | sed 's/^refs\/tags\///')
NOT_RC := $(shell echo $(VERSION) | grep -v -e -rc)
ifeq ($(NOT_RC),)
PUSHTYPE := release-candidate
@ -62,6 +71,7 @@ DEB_VERSION := $(shell echo $(VERSION) | sed 's/-/~/g')
ifdef V
$(info TRAVIS_TAG is $(TRAVIS_TAG))
$(info GITHUB_REF is $(GITHUB_REF))
$(info VERSION is $(VERSION))
$(info DEB_VERSION is $(DEB_VERSION))
$(info PUSHTYPE is $(PUSHTYPE))
@ -270,7 +280,6 @@ bundle-darwin: binary-darwin
# Targets for creating step artifacts
#################################################
# This command is called by travis directly *after* a successful build
docker-artifacts: docker-$(PUSHTYPE)
.PHONY: docker-artifacts