diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f79ec050ba..f1cf427827 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -202,13 +202,13 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive dist s3://rustup-builds/${{ github.sha }}/dist env: @@ -401,13 +401,13 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive dist s3://rustup-builds/${{ github.sha }}/dist env: @@ -606,13 +606,13 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive dist s3://rustup-builds/${{ github.sha }}/dist env: @@ -776,13 +776,13 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive deploy/ s3://rustup-builds/${{ github.sha }} env: @@ -948,13 +948,13 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive deploy/ s3://rustup-builds/${{ github.sha }} env: @@ -1146,13 +1146,13 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive deploy/ s3://rustup-builds/${{ github.sha }} env: @@ -1272,13 +1272,13 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive deploy/ s3://rustup-builds/${{ github.sha }} env: @@ -1403,13 +1403,13 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive deploy/ s3://rustup-builds/${{ github.sha }} env: diff --git a/ci/actions-templates/linux-builds-template.yaml b/ci/actions-templates/linux-builds-template.yaml index 214d666fab..ca7d87378d 100644 --- a/ci/actions-templates/linux-builds-template.yaml +++ b/ci/actions-templates/linux-builds-template.yaml @@ -187,13 +187,13 @@ jobs: # skip-main skip-pr skip-stable AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive deploy/ s3://rustup-builds/${{ github.sha }} env: diff --git a/ci/actions-templates/macos-builds-template.yaml b/ci/actions-templates/macos-builds-template.yaml index f7738b8ba0..f6411a929b 100644 --- a/ci/actions-templates/macos-builds-template.yaml +++ b/ci/actions-templates/macos-builds-template.yaml @@ -115,13 +115,13 @@ jobs: # skip-x86_64 skip-aarch64 AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive deploy/ s3://rustup-builds/${{ github.sha }} env: diff --git a/ci/actions-templates/windows-builds-template.yaml b/ci/actions-templates/windows-builds-template.yaml index 60eed06a08..938dd01e12 100644 --- a/ci/actions-templates/windows-builds-template.yaml +++ b/ci/actions-templates/windows-builds-template.yaml @@ -193,13 +193,13 @@ jobs: # skip-main skip-pr skip-stable AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-west-1 - name: Configure AWS credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') uses: aws-actions/configure-aws-credentials@v6 with: role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--rustup aws-region: us-east-1 - name: Deploy build to rustup-builds bucket for release team - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release' + if: github.event_name == 'push' && matrix.mode == 'release' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/main') run: | aws --debug s3 cp --recursive dist s3://rustup-builds/${{ github.sha }}/dist env: