From 23e7743438f420114a2e221f9719b3cdc264642f Mon Sep 17 00:00:00 2001 From: Jigar-f Date: Mon, 17 Jun 2024 11:30:22 +0530 Subject: [PATCH] Do not push ios build to s3. --- .github/workflows/build-android.yml | 2 - .github/workflows/build-ios.yml | 71 ++++++++++++++--------------- 2 files changed, 35 insertions(+), 38 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index a0c761f87..d9ef38d27 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -12,12 +12,10 @@ on: type: string required: true - env: GOPRIVATE: github.com/getlantern S3_BUCKET: lantern - jobs: build-android: env: diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index e4a636bcc..1570fd85d 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -19,7 +19,6 @@ on: required: true env: GOPRIVATE: github.com/getlantern - S3_BUCKET: lantern jobs: build-ios: runs-on: ${{ inputs.macos_version }} @@ -149,38 +148,38 @@ jobs: name: Lantern.ipa path: ${{ github.workspace }}/build/ios/ipa/Lantern.ipa retention-days: 2 - - - name: Compress artifacts using bzip2 - run: | - cd ${{ github.workspace }}/build/ios/ipa/ - bzip2 -zk Lantern.ipa - - - name: Copy .ipa and .bz2 to root - run: | - cp ${{ github.workspace }}/build/ios/ipa/Lantern.ipa ${{ github.workspace }}/Lantern.ipa - cp ${{ github.workspace }}/build/ios/ipa/Lantern.ipa.bz2 ${{ github.workspace }}/Lantern.ipa.bz2 - - - name: Install s3cmd - run: pip install s3cmd - - - name: Set s3cmd permissions - run: | - echo "[default]" > "$HOME/.s3cfg" - echo "access_key = ${{ secrets.AWS_ACCESS_KEY }}" >> "$HOME/.s3cfg" - echo "secret_key = ${{ secrets.AWS_SECRET_KEY }}" >> "$HOME/.s3cfg" - - - name: Push binaries to s3 - env: - VERSION: "${{ env.version }}" - IPA: "${{ env.prefix }}-${{ env.version }}.ipa" - update: "lantern_update_ios-${{inputs.version}}.bz2" - update_source: Lantern.ipa.bz2 - run: | - mv ${{ env.update_source }} ${{ env.update }} - mv Lantern.ipa "$IPA" - cp "$IPA" ${{ env.prefix }}.ipa - echo ${{ env.version }} > ${{ env.version_file }} - shasum -a 256 "$IPA" | cut -d " " -f 1 > "$IPA".sha256 - shasum -a 256 ${{ env.update }} | cut -d " " -f 1 > ${{ env.update }}.sha256 - cp "$IPA".sha256 ${{ env.prefix }}.ipa.sha256 - s3cmd put --acl-public "$IPA" "$IPA".sha256 ${{ env.update }} ${{ env.update }}.sha256 ${{ env.version_file }} ${{ env.prefix }}.ipa.sha256 ${{ env.prefix }}.ipa "s3://lantern" +# +# - name: Compress artifacts using bzip2 +# run: | +# cd ${{ github.workspace }}/build/ios/ipa/ +# bzip2 -zk Lantern.ipa +# +# - name: Copy .ipa and .bz2 to root +# run: | +# cp ${{ github.workspace }}/build/ios/ipa/Lantern.ipa ${{ github.workspace }}/Lantern.ipa +# cp ${{ github.workspace }}/build/ios/ipa/Lantern.ipa.bz2 ${{ github.workspace }}/Lantern.ipa.bz2 +# +# - name: Install s3cmd +# run: pip install s3cmd +# +# - name: Set s3cmd permissions +# run: | +# echo "[default]" > "$HOME/.s3cfg" +# echo "access_key = ${{ secrets.AWS_ACCESS_KEY }}" >> "$HOME/.s3cfg" +# echo "secret_key = ${{ secrets.AWS_SECRET_KEY }}" >> "$HOME/.s3cfg" +# +# - name: Push binaries to s3 +# env: +# VERSION: "${{ env.version }}" +# IPA: "${{ env.prefix }}-${{ env.version }}.ipa" +# update: "lantern_update_ios-${{inputs.version}}.bz2" +# update_source: Lantern.ipa.bz2 +# run: | +# mv ${{ env.update_source }} ${{ env.update }} +# mv Lantern.ipa "$IPA" +# cp "$IPA" ${{ env.prefix }}.ipa +# echo ${{ env.version }} > ${{ env.version_file }} +# shasum -a 256 "$IPA" | cut -d " " -f 1 > "$IPA".sha256 +# shasum -a 256 ${{ env.update }} | cut -d " " -f 1 > ${{ env.update }}.sha256 +# cp "$IPA".sha256 ${{ env.prefix }}.ipa.sha256 +# s3cmd put --acl-public "$IPA" "$IPA".sha256 ${{ env.update }} ${{ env.update }}.sha256 ${{ env.version_file }} ${{ env.prefix }}.ipa.sha256 ${{ env.prefix }}.ipa "s3://lantern"