diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf6409a5..5cfa3777 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,9 +52,25 @@ jobs: run: | mkdir -p dist go build -ldflags="-s -w -X main.Version=${{ github.ref_name }}" \ - -o dist/core-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }} \ + -o dist/core${{ matrix.ext }} \ . + - name: Create archive (Unix) + if: matrix.goos != 'windows' + shell: bash + run: | + cd dist + tar -czvf core-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz core + rm core + + - name: Create archive (Windows) + if: matrix.goos == 'windows' + shell: bash + run: | + cd dist + zip core-${{ matrix.goos }}-${{ matrix.goarch }}.zip core.exe + rm core.exe + - name: Upload artifact uses: actions/upload-artifact@v4 with: