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: