From 7a29b21cabe4cb417a1e77841cb7931d4f4e15da Mon Sep 17 00:00:00 2001 From: Ryo Kitagawa Date: Wed, 12 Jul 2023 23:11:47 +0900 Subject: [PATCH] Fix release workflow --- .github/workflows/release.yaml | 13 +++++-------- .goreleaser-linux.yml | 17 ----------------- .goreleaser-macos.yml | 15 --------------- 3 files changed, 5 insertions(+), 40 deletions(-) delete mode 100644 .goreleaser-linux.yml delete mode 100644 .goreleaser-macos.yml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3ebf3a0..8c1d69d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -76,12 +76,9 @@ jobs: ls -lR ./ cd ../ - - id: lowerCaseOS - run: INPUT=${{ runner.os }} echo "::set-output name=os::${INPUT,,}" - - - uses: goreleaser/goreleaser-action@v2 + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 with: - version: latest - args: release --config=./.goreleaser-${{ matrix.lower_os }}.yml --clean - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + repo_token: ${{ secrets.ACCESS_TOKEN }} + file: ./build/${{ matrix.asset_name }}.zip + tag: ${{ github.ref }} diff --git a/.goreleaser-linux.yml b/.goreleaser-linux.yml deleted file mode 100644 index 758ce9f..0000000 --- a/.goreleaser-linux.yml +++ /dev/null @@ -1,17 +0,0 @@ -builds: - - binary: bqls - skip: true - - goos: - - linux - goarch: - - amd64 - ldflags: - - -X main.version={{ .Version }} - - -X main.revision={{ .ShortCommit }} - -release: - github: - owner: kitagry - name: bqls - extra_files: - - glob: "build/*.zip" diff --git a/.goreleaser-macos.yml b/.goreleaser-macos.yml deleted file mode 100644 index 4feb561..0000000 --- a/.goreleaser-macos.yml +++ /dev/null @@ -1,15 +0,0 @@ -builds: - - goos: - - darwin - goarch: - - amd64 - ldflags: - - -X main.version={{ .Version }} - - -X main.revision={{ .ShortCommit }} - -release: - github: - owner: kitagry - name: bqls - extra_files: - - glob: "build/*.zip"