From 06f8bc96cbd26e61b6726393b0407ebc9930205c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 14 Feb 2024 08:43:50 -0800 Subject: [PATCH] Switch to using a docs-specific aws key for publishing docs --- .github/workflows/master-push.yml | 2 +- .github/workflows/publish-release.yml | 4 ++-- build.sh | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/master-push.yml b/.github/workflows/master-push.yml index 1b82370f09..885784142f 100644 --- a/.github/workflows/master-push.yml +++ b/.github/workflows/master-push.yml @@ -74,8 +74,8 @@ jobs: - name: Upload examples to artifacts library uses: actions/upload-artifact@v4 with: - path: realm-examples.zip name: realm-examples + path: realm-examples.zip build-product: # Creates framework for each platform, xcode version, target and configuration runs-on: macos-13 name: Package framework diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index b5f817031a..a6d45a084d 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -37,8 +37,8 @@ jobs: name: Publish docs to S3 Bucket needs: tag-release env: - AWS_ACCESS_KEY_ID: ${{ secrets.UPDATE_CHECKER_ACCESS_KEY }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.UPDATE_CHECKER_SECRET_KEY }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_DOCS_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_DOCS_SECRET_ACCESS_KEY }} GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4 diff --git a/build.sh b/build.sh index 698fcfe378..ee79814740 100755 --- a/build.sh +++ b/build.sh @@ -286,7 +286,6 @@ create_xcframework() { local platform="$3" local out_path="$ROOT_WORKSPACE/$config/$platform/$product.xcframework" - # find "$ROOT_WORKSPACE" -maxdepth 5 find "$ROOT_WORKSPACE" -path "*/$config*/$product.framework" \ | sed 's/.*/-framework &/' \ | xargs xcodebuild -create-xcframework -allow-internal-distribution -output "$out_path" @@ -1083,7 +1082,7 @@ case "$COMMAND" in release-create-xcframework-*) platform="$2" - xcode_version=$(echo "$COMMAND" | cut -d- -f4 ) + xcode_version=$(echo "$COMMAND" | cut -d- -f4) # Artifacts are nested zips so need to be extracted twice find . -name 'build-*.zip' -exec unzip {} \;