From 184324338ea49f3c3ee20f529fd5e27aa4aed9aa Mon Sep 17 00:00:00 2001 From: 0xbadbee Date: Sat, 12 Aug 2023 13:01:47 +0200 Subject: [PATCH] Update build_release.yml --- .github/workflows/build_release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 095f16c1..71e1cf94 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -6,6 +6,8 @@ on: tags: - tc_nightly - tc_v* + pull_request: + branches: [ "master", "develop" ] jobs: build-windows-amd64: @@ -98,6 +100,7 @@ jobs: release_name: TeddyCloud ${{ env.RELEASE_NAME }} draft: true prerelease: ${{ env.IS_PRERELEASE }} + if: github.event_name != 'pull_request' - name: Upload Release Asset id: upload-release-asset @@ -109,7 +112,10 @@ jobs: asset_path: ./install/zip/release.zip asset_name: teddycloud.amd64.${{ env.ASSET_APPENDIX }}.zip asset_content_type: application/zip + if: github.event_name != 'pull_request' - id: set_data1 run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> "$GITHUB_OUTPUT" + if: github.event_name != 'pull_request' - id: set_data2 run: echo "appendix=${{ env.ASSET_APPENDIX }}" >> "$GITHUB_OUTPUT" + if: github.event_name != 'pull_request'