Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Sep 12, 2023
1 parent 9d01472 commit 7b327ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
includes: ${{ steps.strategy_matrix.outputs.includes }}
without_deploy: ${{ env.VERSION != '0.0.0' }}
without_deploy: ${{ env.VERSION == '0.0.0' }}
steps:
- name: declare strategy matrix
id: strategy_matrix
Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
cd artifact
7z a "../${{ env.ASSET_NAME }}.zip" "${{ env.ASSET_NAME }}"
- name: Upload to Release
if: needs.config.outputs.without_deploy && env.SKIP_UPLOADING_RELEASE_ASSET == '0' && !contains(matrix.target, 'ios')
if: (!needs.config.outputs.without_deploy) && env.SKIP_UPLOADING_RELEASE_ASSET == '0' && !contains(matrix.target, 'ios')
uses: softprops/action-gh-release@v1
with:
prerelease: true
Expand All @@ -328,7 +328,7 @@ jobs:
${{ env.ASSET_NAME }}.zip
target_commitish: ${{ github.sha }}
- name: Upload Python whl to Release
if: needs.config.outputs.without_deploy && matrix.whl_local_version
if: (!needs.config.outputs.without_deploy) && matrix.whl_local_version
uses: softprops/action-gh-release@v1
with:
prerelease: true
Expand Down Expand Up @@ -382,7 +382,7 @@ jobs:
cd artifact/${{ env.ASSET_NAME }}
7z a "../../${{ env.ASSET_NAME }}.zip" "voicevox_core.xcframework"
- name: Upload to Release
if: needs.config.outputs.without_deploy && env.SKIP_UPLOADING_RELEASE_ASSET == '0'
if: (!needs.config.outputs.without_deploy) && env.SKIP_UPLOADING_RELEASE_ASSET == '0'
uses: softprops/action-gh-release@v1
with:
prerelease: true
Expand All @@ -393,7 +393,7 @@ jobs:

download_test:
needs: [config, build_and_deploy]
if: needs.config.outputs.without_deploy
if: ! needs.config.outputs.without_deploy
uses: ./.github/workflows/download_test.yml
with:
version: ${{ inputs.version }}

0 comments on commit 7b327ff

Please sign in to comment.