diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a07c15..08eee5b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,12 +31,19 @@ jobs: GOOS=windows GOARCH=amd64 go build -o ./bin/geo-windows-amd64.exe ./cmd/geo GOOS=windows GOARCH=arm64 go build -o ./bin/geo-windows-arm64.exe ./cmd/geo - - name: Delete current release assets - uses: andreaswilli/delete-release-assets-action@v3.0.0 + # - name: Delete current release assets + # uses: andreaswilli/delete-release-assets-action@v3.0.0 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # tag: latest + # deleteOnlyFromDrafts: false + + - uses: dev-drprasad/delete-tag-and-release@v1.0 # PRERELEASE is v1.0 and can also be used to test and give us feedback with: - github_token: ${{ secrets.GITHUB_TOKEN }} - tag: latest - deleteOnlyFromDrafts: false + tag_name: latest + github_token: ${{ secrets.GITHUB_TOKEN }} # (required) a GitHub token with write access to the repo that needs to be modified + delete_release: true #(optional) default: true + # repo: / #(optional) target repository. default: repo running this action - name: Create and Upload Release id: upload_release