Release version
This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- name: Build raw binaries
|
||||
- name: Build ${{ matrix.goos }}_${{ matrix.goarch }}
|
||||
env:
|
||||
GOOS: ${{ matrix.goos }}
|
||||
GOARCH: ${{ matrix.goarch }}
|
||||
@@ -48,10 +48,10 @@ jobs:
|
||||
outfile="${BINARY_NAME}_${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||
go build -o "dist/${outfile}" .
|
||||
|
||||
- name: Upload raw binary
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: binaries
|
||||
name: binaries_${{ matrix.goos }}_${{ matrix.goarch }}
|
||||
path: dist/${{ env.BINARY_NAME }}_${{ matrix.goos }}_${{ matrix.goarch }}
|
||||
if-no-files-found: error
|
||||
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
tag="${GITHUB_REF_NAME}"
|
||||
tar -czf "dist/${{ env.BINARY_NAME }}_${tag}_source.tar.gz" .
|
||||
|
||||
- name: Upload source artifact
|
||||
- name: Upload source
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: source
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
path: dist
|
||||
merge-multiple: true
|
||||
|
||||
- name: Publish assets to GitHub Release
|
||||
- name: Publish to GitHub release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
|
||||
Reference in New Issue
Block a user