mirror of
https://github.com/webui-dev/webui.git
synced 2024-10-26 23:43:43 +03:00
Merge pull request #415 from ttytm/ci/fix-release-cond
Fix condition for release steps when pushing tags
This commit is contained in:
commit
9518b9e844
4
.github/workflows/linux.yml
vendored
4
.github/workflows/linux.yml
vendored
@ -127,7 +127,9 @@ jobs:
|
||||
with:
|
||||
tag_name: nightly
|
||||
- name: 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'))
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: ${{ env.ARTIFACT }}.zip
|
||||
|
8
.github/workflows/macos.yml
vendored
8
.github/workflows/macos.yml
vendored
@ -85,7 +85,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
|
||||
@ -106,7 +108,9 @@ jobs:
|
||||
with:
|
||||
tag_name: nightly
|
||||
- name: 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'))
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: ${{ env.ARTIFACT }}.zip
|
||||
|
8
.github/workflows/windows.yml
vendored
8
.github/workflows/windows.yml
vendored
@ -93,7 +93,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'))
|
||||
shell: bash
|
||||
run: |
|
||||
7z a -tzip "$ARTIFACT.zip" "$ARTIFACT/*"
|
||||
@ -115,7 +117,9 @@ jobs:
|
||||
with:
|
||||
tag_name: nightly
|
||||
- name: 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'))
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: ${{ env.ARTIFACT }}.zip
|
||||
|
Loading…
Reference in New Issue
Block a user