Skip to content

Commit

Permalink
Fix Version
Browse files Browse the repository at this point in the history
  • Loading branch information
xackery committed Feb 12, 2023
1 parent 20739fe commit 5798064
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Platform Tests & Build
on: [push]
env:
VERSION: 0.0.1

jobs:
platform_tests:
Expand All @@ -16,6 +14,10 @@ jobs:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Set Version
run: make set-version

- uses: WillAbides/setup-go-faster@v1.7.0
with:
go-version: ${{ matrix.go-version }}
Expand Down Expand Up @@ -52,8 +54,6 @@ jobs:
GOARCH: amd64
working-directory: .
run: |
make set-variable
echo "Version set to $VERSION"
make build-linux
make build-windows
make build-darwin
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ VERSION := 0.1.5

# CICD triggers this
.PHONY: set-variable
set-variable:
@echo "VERSION=${VERSION}" >> $$VERSION
set-version:
@echo "VERSION=${VERSION}" >> $$GITHUB_ENV

sanitize:
rm -rf vendor/
Expand Down

0 comments on commit 5798064

Please sign in to comment.