From 8efb59a15d49b78e00f214dae845025b43f207c0 Mon Sep 17 00:00:00 2001 From: Damien Sedgwick Date: Sun, 3 Mar 2024 10:30:27 +0000 Subject: [PATCH] Update gorelease.yml --- .github/workflows/gorelease.yml | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/gorelease.yml b/.github/workflows/gorelease.yml index 13480e8..4980790 100644 --- a/.github/workflows/gorelease.yml +++ b/.github/workflows/gorelease.yml @@ -20,22 +20,10 @@ jobs: goarch: ["386", amd64, arm64] steps: - - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.22' # Or your desired Go version - - - name: Build Binaries - env: - GOOS: ${{ matrix.os }} - GOARCH: ${{ matrix.goarch }} - run: go build -tags netgo -a -v -o dist/${{ matrix.os }}-${{ matrix.goarch }}/napp . - - - name: Create Release Artifacts - uses: actions/upload-artifact@v4 - with: - name: binaries - path: dist/ - + - uses: actions/checkout@v4 + - uses: wangyoucao577/go-release-action@v1.22 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + binary_name: "napp"