From b6e3b36de28303a6f9a72ada62e78e7f90f1d981 Mon Sep 17 00:00:00 2001 From: atavism Date: Wed, 18 Oct 2023 03:32:45 -0700 Subject: [PATCH] update release workflow --- .github/workflows/release.yml | 54 ----------------------------------- 1 file changed, 54 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cecd98583..f2a47b6b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -175,57 +175,3 @@ jobs: s3cmd modify --add-header='content-type':'application/vnd.android.package-archive' "s3://$S3_BUCKET/${{ env.prefix }}.apk" s3cmd modify --add-header='content-type':'application/vnd.android.package-archive' "s3://$S3_BUCKET/$AAB" s3cmd modify --add-header='content-type':'application/vnd.android.package-archive' "s3://$S3_BUCKET/${{ env.prefix }}.aab" - - push-binaries: - runs-on: - group: large-runners - needs: [ set-version , build-android ] - env: - version: ${{ needs.set-version.outputs.version }} - prefix: ${{ needs.set-version.outputs.prefix }} - steps: - - name: Download the apk build output - uses: actions/download-artifact@v3 - with: - name: android-apk-build - - name: Download the aab build output - uses: actions/download-artifact@v3 - with: - name: android-aab-build - - name: Upload Android App bundle to Play Store (beta) - if: needs.set-version.outputs.prefix == 'lantern-installer-preview' - uses: r0adkll/upload-google-play@v1 - with: - serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} - packageName: org.getlantern.lantern - releaseFiles: lantern-installer.aab - track: beta - - name: Upload Android App bundle to Play Store (production) - if: needs.set-version.outputs.prefix == 'lantern-installer' - uses: r0adkll/upload-google-play@v1 - with: - serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} - packageName: org.getlantern.lantern - releaseFiles: lantern-installer.aab - track: production - - name: Grant private modules access - run: git config --global url."https://${{ secrets.GH_TOKEN }}:x-oauth-basic@github.com/".insteadOf "https://github.com/" - - name: Clone binaries repo - run: git clone --depth 1 https://github.com/getlantern/lantern-binaries - - name: Rename builds - run: | - diff lantern-installer.apk ${{ env.prefix }}.apk || mv -f lantern-installer.apk ${{ env.prefix }}.apk - diff lantern-installer.aab ${{ env.prefix }}.aab || mv -f lantern-installer.aab ${{ env.prefix }}.aab - - name: Prepare sha256 sums - run: | - shasum -a 256 ${{ env.prefix }}.apk | cut -d " " -f 1 > ${{ env.prefix }}.apk.sha256 - shasum -a 256 ${{ env.prefix }}.aab | cut -d " " -f 1 > ${{ env.prefix }}.aab.sha256 - - name: Commit - run: | - mv lantern-installer* ./lantern-binaries/ - cd lantern-binaries - git config user.email "admin@getlantern.org" - git config user.name "Lantern Bot" - git add . - git commit -m "Lantern binaries for version ${{ env.version }}" - git push origin main