diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 13c8431..5e00803 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -37,8 +37,9 @@ jobs: - name: Release uses: softprops/action-gh-release@v2 - if: github.ref == 'refs/heads/master' + if: startsWith(github.ref, 'refs/tags/') with: + fail_on_unmatched_files: true files: photomode-linux.zip win32: @@ -74,6 +75,7 @@ jobs: - name: Release uses: softprops/action-gh-release@v2 - if: github.ref == 'refs/heads/master' + if: startsWith(github.ref, 'refs/tags/') with: + fail_on_unmatched_files: true files: photomode-windows.zip