diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26520f0..e738d49 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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"