From 98a10fe5833413fe3420d8a53c1cc1a28f988843 Mon Sep 17 00:00:00 2001 From: Tetro48 <76738929+Tetro48@users.noreply.github.com> Date: Tue, 24 Jan 2023 13:13:32 +0700 Subject: [PATCH] Minor workflow tweak. --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d3606b03..3645e17d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -102,7 +102,7 @@ jobs: - name: "Pre-release" uses: softprops/action-gh-release@v1 id: create_release - if: ${{ github.event_name == 'push' }} && startsWith(github.ref, 'refs/heads/') + if: startsWith(github.ref, 'refs/heads/') with: prerelease: true generate_release_notes: true @@ -110,7 +110,7 @@ jobs: files: dist/cambridge_* - name: "Release" uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/') with: generate_release_notes: true files: dist/cambridge_* \ No newline at end of file