File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed
Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments