From 9df41d110e18f0ce5f7cd58f94d88d79dc441259 Mon Sep 17 00:00:00 2001 From: AdrianMiska Date: Sat, 11 Feb 2023 07:25:18 +0100 Subject: [PATCH] .github: change release workflow output (#47) * Change release workflow output Changing the file structure of release assets to adhere to previous format * upgrade go-release-action * fix windows asset name * fix windows binary name --- .github/workflows/binaries.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 7027f9b..46d72ad 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -10,42 +10,64 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: wangyoucao577/go-release-action@v1.22 + - uses: wangyoucao577/go-release-action@v1.35 with: github_token: ${{ secrets.GITHUB_TOKEN }} goos: linux goarch: amd64 project_path: cmd/envsubst + asset_name: envsubst-Linux-x86_64 + compress_assets: OFF release-linux-arm64: name: release linux/arm64 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: wangyoucao577/go-release-action@v1.22 + - uses: wangyoucao577/go-release-action@v1.35 with: github_token: ${{ secrets.GITHUB_TOKEN }} goos: linux goarch: arm64 project_path: cmd/envsubst + asset_name: envsubst-Linux-arm64 + compress_assets: OFF release-darwin-amd64: name: release darwin/amd64 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: wangyoucao577/go-release-action@v1.22 + - uses: wangyoucao577/go-release-action@v1.35 with: github_token: ${{ secrets.GITHUB_TOKEN }} goos: darwin goarch: amd64 project_path: cmd/envsubst + asset_name: envsubst-Darwin-x86_64 + compress_assets: OFF release-darwin-arm64: name: release darwin/arm64 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: wangyoucao577/go-release-action@v1.22 + - uses: wangyoucao577/go-release-action@v1.35 with: github_token: ${{ secrets.GITHUB_TOKEN }} goos: darwin goarch: arm64 project_path: cmd/envsubst + asset_name: envsubst-Darwin-arm64 + compress_assets: OFF + release-windows: + name: release windows + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: wangyoucao577/go-release-action@v1.35 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: windows + goarch: amd64 + project_path: cmd/envsubst + binary_name: envsubst-windows #release fails if the binary name is the same as the asset name + asset_name: envsubst + compress_assets: OFF