From 1cb44d461cf55b91ca0bac4c10d8d670b1d07a85 Mon Sep 17 00:00:00 2001 From: EndermanbugZJFC <53002741+Endermanbugzjfc@users.noreply.github.com> Date: Fri, 16 Dec 2022 21:52:07 +0800 Subject: [PATCH] Fix executables building with the wrong package (#93) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 120dca0..ec147bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: mkdir -p $GOPATH/bin export PATH=$PATH:$GOPATH/bin - name: Build Executable - run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o portal_${{ matrix.os }}_${{ matrix.arch }}${{ matrix.os == 'windows' && '.exe' || '' }} -ldflags="-s -w" -v . + run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o portal_${{ matrix.os }}_${{ matrix.arch }}${{ matrix.os == 'windows' && '.exe' || '' }} -ldflags="-s -w" -v examples/main.go - name: Release uses: softprops/action-gh-release@v1 with: