From fda45dd693d7b7e4c50240a703dfa8efafdf48d9 Mon Sep 17 00:00:00 2001 From: Enis Date: Thu, 20 Apr 2023 14:58:51 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28e8e75..5780763 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,6 @@ name: Release on: - workflow_dispatch: # TODO: remove workflow_run: workflows: - Build @@ -19,10 +18,10 @@ permissions: jobs: release: runs-on: ubuntu-latest -# if: | -# github.event_name == 'workflow_run' -# && github.event.workflow_run.conclusion == 'success' -# && startsWith(github.event.workflow_run.head_branch, 'refs/tags/') + if: | + github.event_name == 'workflow_run' + && github.event.workflow_run.conclusion == 'success' + && startsWith(github.event.workflow_run.head_branch, 'refs/tags/') steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v2 @@ -55,10 +54,10 @@ jobs: release-macos: runs-on: macos-latest -# if: | -# github.event_name == 'workflow_run' -# && github.event.workflow_run.conclusion == 'success' -# && startsWith(github.event.workflow_run.head_branch, 'refs/tags/') + if: | + github.event_name == 'workflow_run' + && github.event.workflow_run.conclusion == 'success' + && startsWith(github.event.workflow_run.head_branch, 'refs/tags/') steps: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2