From 4cbfd841ea1019416316765348e86f04c2cce8e9 Mon Sep 17 00:00:00 2001 From: tretinha Date: Thu, 18 May 2023 08:11:05 -0300 Subject: [PATCH 1/4] Compress moxxiproxy binary --- .github/workflows/release.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efbef97..3bddf03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: version: - description: "version (vx.y.z)" + description: "version (x.y.z, _without_ a leading v)" required: true type: string @@ -17,13 +17,15 @@ jobs: - uses: actions/setup-go@v4 with: go-version: '1.18' - - run: make build + - run: | + make build + tar -czf moxxiproxy.tar.gz moxxiproxy - name: upload bin to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: moxxiproxy - asset_name: ${{ inputs.version }} - tag: ${{ inputs.version }} + file: moxxiproxy_tar.gz + asset_name: moxxiproxy_${{ inputs.version }}_Linux_x86_64.tar.gz + tag: v${{ inputs.version }} overwrite: true - body: "moxxiproxy release ${{ inputs.version }}." \ No newline at end of file + body: "moxxiproxy release ${{ inputs.version }}." From 3d97cd47f38da55120ce497a74d0065e64d10177 Mon Sep 17 00:00:00 2001 From: tretinha Date: Thu, 18 May 2023 08:12:29 -0300 Subject: [PATCH 2/4] Fix typo: moxxiproxy_tar.gz -> moxxiproxy.tar.gz --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bddf03..13b3ddd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: moxxiproxy_tar.gz + file: moxxiproxy.tar.gz asset_name: moxxiproxy_${{ inputs.version }}_Linux_x86_64.tar.gz tag: v${{ inputs.version }} overwrite: true From 7437e398c383b18b71ae78562e4858cfc296ea8b Mon Sep 17 00:00:00 2001 From: tretinha Date: Thu, 18 May 2023 08:16:56 -0300 Subject: [PATCH 3/4] Update release body version --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13b3ddd..94c13a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,4 +28,4 @@ jobs: asset_name: moxxiproxy_${{ inputs.version }}_Linux_x86_64.tar.gz tag: v${{ inputs.version }} overwrite: true - body: "moxxiproxy release ${{ inputs.version }}." + body: "moxxiproxy release v${{ inputs.version }}." From eba3313ea18a93e888ef49c975b126fcd632f0c8 Mon Sep 17 00:00:00 2001 From: tretinha Date: Thu, 18 May 2023 11:25:12 -0300 Subject: [PATCH 4/4] Bump go's version to 1.20 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94c13a4..3b9b25e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.18' + go-version: '1.20' - run: | make build tar -czf moxxiproxy.tar.gz moxxiproxy