From e3f517ad29b6edd9d18c75790eb1ebab8abc837e Mon Sep 17 00:00:00 2001 From: Bruno Borges Date: Fri, 3 Nov 2023 12:37:11 -0700 Subject: [PATCH] release only when tag --- .github/workflows/dotnet.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1d0b26e..542387a 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -37,7 +37,8 @@ jobs: path: ./wcjvm/out/net7.0/win-x64/wcjvm.exe - name: Release uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: files: "./wcjvm/out/net7.0/win-x64/wcjvm.exe" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}