Skip to content

Commit d4fd74e

Browse files
author
Darren Kelly
committed
fix(goreleaser): remove go generate command and set go generate version
1 parent 557857a commit d4fd74e

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/release-binaries.yaml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,15 @@ jobs:
5757
make thor
5858
make disco
5959
60-
- name: Set Env
60+
- name: Rename Binary
6161
run: |
62-
echo "THOR_VERSION=$(cat ./cmd/thor/VERSION)" >> $GITHUB_ENV
63-
echo "DISCO_VERSION=$(cat ./cmd/disco/VERSION)" >> $GITHUB_ENV
64-
echo "COPYRIGHT_YEAR=$(date +%Y)" >> $GITHUB_ENV
65-
66-
- name: Build
67-
run: goreleaser build --single-target --id ${{ inputs.binary || 'thor' }} --clean
68-
env:
69-
GOOS: ${{ matrix.goos }}
70-
GOARCH: ${{ matrix.goarch }}
71-
THOR_VERSION: ${{ env.THOR_VERSION }}
72-
DISCO_VERSION: ${{ env.DISCO_VERSION }}
73-
COPYRIGHT_YEAR: ${{ env.COPYRIGHT_YEAR }}
74-
75-
- name: Debug dist directory
76-
run: ls -la dist
62+
mkdir -p ./dist
63+
mv ./bin/${{env.BINARY_ID}} ./dist/${{env.BINARY_ID}}-${{ matrix.goos }}-${{ matrix.goarch }}
7764
7865
- name: Upload release binaries
7966
uses: alexellis/upload-assets@0.4.1
8067
env:
8168
GITHUB_TOKEN: ${{ github.token }}
8269
with:
83-
asset_paths: '["./dist/*"]'
70+
asset_paths: '["./dist/${{env.BINARY_ID}}-${{ matrix.goos }}-${{ matrix.goarch }}"]'
8471

0 commit comments

Comments
 (0)