From 915c9a9f71b4617cec65a79bd3a2c83656514114 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Thu, 3 Nov 2022 10:39:43 +0000 Subject: [PATCH] Compile and release semver and the V1 tag. --- .github/workflows/release.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8fe1b3d..574343d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -205,7 +205,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Compile binary + - name: Compile and release semver uses: wangyoucao577/go-release-action@v1.32 with: github_token: ${{ secrets.GHCR_TOKEN }} @@ -222,6 +222,23 @@ jobs: overwrite: true pre_command: export GODEBUG=http2client=0 + - name: Compile and release v1 + uses: wangyoucao577/go-release-action@v1.32 + with: + github_token: ${{ secrets.GHCR_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + ldflags: -s -w -X main.PKG_VERSION=${{ needs.prepare.outputs.RELEASE_VERSION }} + project_path: . + binary_name: semver-gen + asset_name: semver-gen-${{ matrix.goos }}-${{ matrix.goarch }} + release_name: version v1:${{ needs.prepare.outputs.RELEASE_VERSION }} + release_tag: v1 + compress_assets: false + retry: 10 + overwrite: true + pre_command: export GODEBUG=http2client=0 + # - name: Create Release # id: create_release # uses: marvinpinto/action-automatic-releases@latest