-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update CI to expect Android builds in push binaries step (#1003)
- Loading branch information
Showing
1 changed file
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,7 +255,7 @@ jobs: | |
push-binaries: | ||
runs-on: | ||
group: large-runners | ||
needs: [ set-version, build-darwin, build-darwin-arm, build-linux, build-windows-x64 ] | ||
needs: [ set-version, build-android, build-darwin, build-darwin-arm, build-linux, build-windows-x64 ] | ||
env: | ||
version: ${{ needs.set-version.outputs.version }} | ||
prefix: ${{ needs.set-version.outputs.prefix }} | ||
|
@@ -276,18 +276,46 @@ jobs: | |
uses: actions/download-artifact@v4 | ||
with: | ||
name: windows64-installer-signed | ||
- 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.CI_PRIVATE_REPOS_GH_TOKEN }}:[email protected]/".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 | ||
mv "lantern_${{env.version}}_x64.deb" ${{ env.prefix }}-64-bit.deb | ||
mv -f lantern-installer-mac.dmg ${{ env.prefix }}-mac.dmg | ||
mv -f lantern-installer-mac_arm.dmg ${{ env.prefix }}-mac_arm.dmg | ||
diff lantern-installer-x64.exe ${{ env.prefix }}-64-bit.exe || mv -f lantern-installer-x64.exe ${{ env.prefix }}-64-bit.exe | ||
- 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 | ||
shasum -a 256 ${{ env.prefix }}-mac.dmg | cut -d " " -f 1 > ${{ env.prefix }}-mac.dmg.sha256 | ||
shasum -a 256 ${{ env.prefix }}-mac_arm.dmg | cut -d " " -f 1 > ${{ env.prefix }}-mac_arm.dmg.sha256 | ||
shasum -a 256 ${{ env.prefix }}-x64.exe | cut -d " " -f 1 > ${{ env.prefix }}-x64.exe.sha256 | ||
|