From 77dfd50ee531aa616893f25bc37f0532c7fc89b3 Mon Sep 17 00:00:00 2001 From: LTLA Date: Wed, 3 Apr 2024 07:56:40 -0700 Subject: [PATCH] Fixed binary names in the publication action. Also bumped the latest tag to the HEAD of the commit. --- .github/workflows/build.yaml | 13 ++++++++++++- .github/workflows/publish.yaml | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a012b38..0cadaeb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -47,6 +47,17 @@ jobs: - name: Check out uses: actions/checkout@v4 + - name: Shift tag + uses: actions/github-script@v7 + with: + script: | + github.rest.git.updateRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: 'tags/latest', + sha: context.sha + }); + - name: Build latest uses: wangyoucao577/go-release-action@v1 with: @@ -54,6 +65,6 @@ jobs: goos: ${{ matrix.os }} goarch: ${{ matrix.arch }} release_tag: latest - asset_name: gobbler-${{ matrix.os }}-${{ matrix.arch }} + asset_name: SewerRat-${{ matrix.os }}-${{ matrix.arch }} overwrite: true compress_assets: false diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index cffeb13..2887e34 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -31,6 +31,6 @@ jobs: goos: ${{ matrix.os }} goarch: ${{ matrix.arch }} release_tag: ${{ github.ref_name }} - asset_name: gobbler-${{ matrix.os }}-${{ matrix.arch }} + asset_name: SewerRat-${{ matrix.os }}-${{ matrix.arch }} overwrite: true compress_assets: false