From 43815d141b89fc680de24a1fb8bc45dc325c6851 Mon Sep 17 00:00:00 2001 From: Hiroshiba Date: Wed, 13 Sep 2023 04:22:58 +0900 Subject: [PATCH] deploy --- .github/workflows/build_and_deploy.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 432f82492..c2a2f1099 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest outputs: includes: ${{ steps.strategy_matrix.outputs.includes }} - without_deploy: ${{ env.VERSION == '0.0.0' }} + deploy: ${{ env.VERSION != '0.0.0' }} steps: - name: declare strategy matrix id: strategy_matrix @@ -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.deploy && env.SKIP_UPLOADING_RELEASE_ASSET == '0' && !contains(matrix.target, 'ios') uses: softprops/action-gh-release@v1 with: prerelease: true @@ -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.deploy && matrix.whl_local_version uses: softprops/action-gh-release@v1 with: prerelease: true @@ -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.deploy && env.SKIP_UPLOADING_RELEASE_ASSET == '0' uses: softprops/action-gh-release@v1 with: prerelease: true @@ -393,7 +393,7 @@ jobs: download_test: needs: [config, build_and_deploy] - if: ! needs.config.outputs.without_deploy + if: needs.config.outputs.deploy uses: ./.github/workflows/download_test.yml with: version: ${{ inputs.version }}