Skip to content

Commit ad7ed44

Browse files
committed
fix windows release issue
1 parent 955b9fa commit ad7ed44

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/build_windows.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,9 @@ jobs:
794794
upload:
795795
needs: [build, prepare-upload, sign-arm64]
796796
uses: pytorch/test-infra/.github/workflows/_binary_upload.yml@main
797-
# if it is the release wheel or tarball, then skip upload to pytorch index(release wheel are uploaded to pypi)
798-
if: ${{ always() && !cancelled() && needs.build.result == 'success' && needs.prepare-upload.result == 'success' && (needs.sign-arm64.result == 'success' || needs.sign-arm64.result == 'skipped') && inputs.python-only == false && inputs.skip-binary-upload == false && inputs.is-release-wheel == false && inputs.is-release-tarball == false }}
797+
# Release wheels are published to the PyTorch test index.
798+
# ZIP artifacts use a different artifact name and are not wheel uploads.
799+
if: ${{ always() && !cancelled() && needs.build.result == 'success' && needs.prepare-upload.result == 'success' && (needs.sign-arm64.result == 'success' || needs.sign-arm64.result == 'skipped') && inputs.python-only == false && inputs.skip-binary-upload == false && inputs.is-release-tarball == false }}
799800
with:
800801
repository: ${{ inputs.repository }}
801802
ref: ${{ inputs.ref }}

‎.github/workflows/release-windows.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ jobs:
127127
smoke-test-script: ${{ matrix.smoke-test-script }}
128128
package-name: ${{ matrix.package-name }}
129129
is-release-wheel: true
130+
trigger-event: ${{ github.event_name }}
130131
build-executorch-runtime: true
131132

132133
concurrency:

0 commit comments

Comments
 (0)