From c7b86e767eff7e6781255efe527e6c373a3ce2f0 Mon Sep 17 00:00:00 2001 From: Yiwen-Chan Date: Sat, 13 Mar 2021 18:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20=E6=B5=8B=E8=AF=95=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 534c4741..b9712cf2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,9 +35,6 @@ jobs: - name: Tidy Go modules run: go mod tidy - - name: Build linux - run: export GOOS=linux; export GOARCH=amd64; export CGO_ENABLED=1; go build -ldflags="-s -w -extldflags '-static'" -o artifacts/ZeroBot-Plugin-windows.exe - - name: Build windows run: export GOOS=windows; export GOARCH=amd64; export CGO_ENABLED=1; go build -ldflags="-s -w -extldflags '-static'" -o artifacts/ZeroBot-Plugin-linux @@ -52,17 +49,8 @@ jobs: - name: Gets latest created release info id: latest_release_info uses: jossef/action-latest-release-info@v1.1.0 - - - name: Upload linux asset to github release page - id: upload-release-asset - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ steps.latest_release_info.outputs.upload_url }} - asset_path: ./artifacts/ZeroBot-Plugin-linux - asset_name: ZeroBot-Plugin-linux - asset_content_type: application/zip - - name: Upload windows asset to github release page + - name: Upload asset to github release page id: upload-release-asset uses: actions/upload-release-asset@v1 with: