From f1c022db290538085929f6a1077b730943405858 Mon Sep 17 00:00:00 2001 From: zyy17 Date: Wed, 20 Sep 2023 21:51:28 +0800 Subject: [PATCH] ci: make upload-to-s3 configurable(for now, it's false) --- .github/actions/build-macos-artifacts/action.yml | 5 +++++ .github/workflows/release.yml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.github/actions/build-macos-artifacts/action.yml b/.github/actions/build-macos-artifacts/action.yml index 31e000b21747..3b9488edd9f3 100644 --- a/.github/actions/build-macos-artifacts/action.yml +++ b/.github/actions/build-macos-artifacts/action.yml @@ -34,6 +34,10 @@ inputs: aws-region: description: AWS region required: true + upload-to-s3: + description: Upload to S3 + required: false + default: 'true' runs: using: composite steps: @@ -103,3 +107,4 @@ runs: aws-access-key-id: ${{ inputs.aws-access-key-id }} aws-secret-access-key: ${{ inputs.aws-secret-access-key }} aws-region: ${{ inputs.aws-region }} + upload-to-s3: ${{ inputs.upload-to-s3 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 561525a7378b..033ad904e040 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -181,6 +181,7 @@ jobs: aws-access-key-id: ${{ secrets.AWS_CN_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_CN_SECRET_ACCESS_KEY }} aws-region: ${{ vars.AWS_RELEASE_BUCKET_REGION }} + upload-to-s3: ${{ vars.UPLOAD_TO_S3 }} build-linux-arm64-artifacts: name: Build linux-arm64 artifacts @@ -204,6 +205,7 @@ jobs: aws-access-key-id: ${{ secrets.AWS_CN_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_CN_SECRET_ACCESS_KEY }} aws-region: ${{ vars.AWS_RELEASE_BUCKET_REGION }} + upload-to-s3: ${{ vars.UPLOAD_TO_S3 }} build-macos-artifacts: name: Build macOS artifacts @@ -250,6 +252,7 @@ jobs: aws-access-key-id: ${{ secrets.AWS_CN_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_CN_SECRET_ACCESS_KEY }} aws-region: ${{ vars.AWS_RELEASE_BUCKET_REGION }} + upload-to-s3: ${{ vars.UPLOAD_TO_S3 }} release-images-to-dockerhub: name: Build and push images to DockerHub