From cb55d7a7c53b6f7dbadcf321026dd051bb4caba9 Mon Sep 17 00:00:00 2001 From: Hyunsu Cho Date: Tue, 19 Nov 2024 09:39:10 -0800 Subject: [PATCH] Fix --- .github/workflows/jvm_tests.yml | 7 +++---- .github/workflows/python_wheels_macos.yml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/jvm_tests.yml b/.github/workflows/jvm_tests.yml index ab21e2f19466..8eecc83c0c19 100644 --- a/.github/workflows/jvm_tests.yml +++ b/.github/workflows/jvm_tests.yml @@ -209,10 +209,9 @@ jobs: python -m awscli s3 cp xgboost4j_${{ github.sha }}.dll ` s3://xgboost-nightly-builds/${{ env.BRANCH_NAME }}/libxgboost4j/ ` --acl public-read --region us-west-2 - if: matrix.os == 'windows-latest' - # if: | - # (github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) && - # matrix.os == 'windows-latest' + if: | + (github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) && + matrix.os == 'windows-latest' env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_IAM_S3_UPLOADER }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_IAM_S3_UPLOADER }} diff --git a/.github/workflows/python_wheels_macos.yml b/.github/workflows/python_wheels_macos.yml index f0f5042660df..02f21593c220 100644 --- a/.github/workflows/python_wheels_macos.yml +++ b/.github/workflows/python_wheels_macos.yml @@ -46,7 +46,7 @@ jobs: - name: Build wheels run: bash ops/pipeline/build-python-wheels-macos.sh ${{ matrix.platform_id }} ${{ github.sha }} - name: Upload Python wheel - # if: github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_') + if: github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_') run: | python -m pip install awscli python -m awscli s3 cp wheelhouse/*.whl s3://xgboost-nightly-builds/${{ env.BRANCH_NAME }}/ --acl public-read --region us-west-2