From 844afb85b124b6d27ce8a49f2c2989709b67719b Mon Sep 17 00:00:00 2001 From: Derek Anderson Date: Thu, 3 Nov 2022 20:58:49 -0500 Subject: [PATCH] latest --- .github/workflows/release.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b58fc3b3..99ba99ce 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,3 +43,19 @@ jobs: asset_path: b7s-${{ matrix.goos }}.${{ matrix.goarch }}.tar.gz asset_name: b7s-${{ matrix.goos }}.${{ matrix.goarch }}.tar.gz asset_content_type: application/gzip + - name: Delete the "latest" Release + uses: dev-drprasad/delete-tag-and-release@v0.2.0 + with: + tag_name: latest + delete_release: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish the Release + uses: softprops/action-gh-release@v1 + with: + tag_name: latest + files: b7s-${{ matrix.goos }}.${{ matrix.goarch }}.tar.gz + prerelease: true + fail_on_unmatched_files: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}