Skip to content

Commit

Permalink
Fix release tag workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hassandraga committed Jun 23, 2024
1 parent 81c778c commit c2f410d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ jobs:
name: ${{ env.ARTIFACT }}
path: ${{ env.ARTIFACT }}
- name: Prepare Release
if: github.repository_owner == 'webui-dev' && github.ref_name == 'main' && github.event_name == 'push'
if: >
github.repository_owner == 'webui-dev'
&& (github.ref_type == 'tag' || (github.ref_name == 'main' && github.event_name == 'push'))
run: |
zip -r "$ARTIFACT.zip" "$ARTIFACT"
if [ $GITHUB_REF_TYPE == tag ]; then
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/linux_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ jobs:
name: ${{ env.ARTIFACT }}
path: ${{ env.ARTIFACT }}
- name: Prepare Release
if: github.repository_owner == 'webui-dev' && github.ref_name == 'main' && github.event_name == 'push'
if: >
github.repository_owner == 'webui-dev'
&& (github.ref_type == 'tag' || (github.ref_name == 'main' && github.event_name == 'push'))
run: |
zip -r "$ARTIFACT.zip" "$ARTIFACT"
if [ $GITHUB_REF_TYPE == tag ]; then
Expand Down

0 comments on commit c2f410d

Please sign in to comment.