Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
enoy19 authored Apr 20, 2023
1 parent e172774 commit fda45dd
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Release

on:
workflow_dispatch: # TODO: remove
workflow_run:
workflows:
- Build
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fda45dd

Please sign in to comment.