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