Skip to content

Commit

Permalink
Get version by running waggle version...
Browse files Browse the repository at this point in the history
rather, `go run ./... version`
  • Loading branch information
zomglings committed Aug 19, 2023
1 parent e5d528a commit bdb9c87
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,12 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ^1.20.0
- name: Set version in environment variable
id: waggle-version
run: |
echo "WAGGLE_VERSION=$(cat version.txt)" >> $GITHUB_ENV
- name: Build binary for each valid (GOOS, GOARCH) pair
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: |
WAGGLE_VERSION=$(go run ./... version)
BUILD_DIR="waggle-${WAGGLE_VERSION}-${GOOS}-${GOARCH}"
mkdir "$BUILD_DIR"
cp README.md "$BUILD_DIR/README.md"
Expand Down

0 comments on commit bdb9c87

Please sign in to comment.