-
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 use current branch for now.
- Loading branch information
Showing
2 changed files
with
120 additions
and
118 deletions.
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
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ name: Publish releases | |
on: | ||
# Triggers the workflow on push when pushing to a version tag | ||
push: | ||
branches: | ||
- jigar/macos-update-profile | ||
tags: | ||
- '*lantern-*' | ||
workflow_run: | ||
|
@@ -127,109 +129,109 @@ jobs: | |
uses: actions/download-artifact@v4 | ||
with: | ||
name: macos-build | ||
- name: Download the linux deb build output | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: linux-rpm-build | ||
- name: Download the linux rpm build output | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: linux-deb-build | ||
|
||
- name: Download the windows64 build output | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: windows64-installer-signed | ||
|
||
- name: Download the apk build output | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: android-apk-build | ||
|
||
- name: Download the aab build output | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: android-aab-build | ||
|
||
- name: Download the IPA | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Lantern.ipa | ||
|
||
- name: Download the Debug Symbols | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: debug-symbols.zip | ||
|
||
- name: Download the mapping file | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: mapping.txt | ||
|
||
|
||
- name: Upload Lantern to TestFlight | ||
uses: apple-actions/upload-testflight-build@v1 | ||
if: (needs.set-version.outputs.prefix == 'lantern-installer-preview'|| needs.set-version.outputs.prefix == 'lantern-installer') && (needs.determine-platform.outputs.platform == 'ios' || needs.determine-platform.outputs.platform == 'all') | ||
with: | ||
app-path: Lantern.ipa | ||
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} | ||
api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }} | ||
api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }} | ||
|
||
- name: Upload Android App bundle to Play Store (beta) | ||
if: needs.set-version.outputs.prefix == 'lantern-installer-preview' && (needs.determine-platform.outputs.platform == 'android' || needs.determine-platform.outputs.platform == 'all') | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | ||
packageName: org.getlantern.lantern | ||
releaseFiles: lantern-installer.aab | ||
track: beta | ||
debugSymbols: debug-symbols.zip | ||
mappingFile: mapping.txt | ||
|
||
- name: Upload Android App bundle to Play Store (production) | ||
if: needs.set-version.outputs.prefix == 'lantern-installer' && (needs.determine-platform.outputs.platform == 'android' || needs.determine-platform.outputs.platform == 'all') | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | ||
packageName: org.getlantern.lantern | ||
releaseFiles: lantern-installer.aab | ||
track: production | ||
debugSymbols: debug-symbols.zip | ||
mappingFile: mapping.txt | ||
|
||
- 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 -f lantern-installer-x64.deb ${{ env.prefix }}-64-bit.deb | ||
mv -f lantern-installer-x64.rpm ${{ env.prefix }}.rpm | ||
mv -f lantern-installer.dmg ${{ env.prefix }}.dmg | ||
diff lantern-installer-x64.exe ${{ env.prefix }}-64-bit.exe || mv -f lantern-installer-x64.exe ${{ env.prefix }}-64-bit.exe | ||
mv -f Lantern.ipa ${{ env.prefix }}.ipa | ||
- 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 | ||
shasum -a 256 ${{ env.prefix }}-64-bit.deb | cut -d " " -f 1 > ${{ env.prefix }}-64-bit.deb.sha256 | ||
shasum -a 256 ${{ env.prefix }}.ipa | cut -d " " -f 1 > ${{ env.prefix }}.ipa.sha256 | ||
- name: Commit | ||
run: | | ||
mv lantern-installer* ./lantern-binaries/ | ||
cd lantern-binaries | ||
git config user.email "[email protected]" | ||
git config user.name "Lantern Bot" | ||
git add . | ||
git commit -m "Lantern binaries for version ${{ env.version }}" | ||
git push origin main | ||
# - name: Download the linux deb build output | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: linux-rpm-build | ||
# - name: Download the linux rpm build output | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: linux-deb-build | ||
# | ||
# - name: Download the windows64 build output | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: windows64-installer-signed | ||
# | ||
# - name: Download the apk build output | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: android-apk-build | ||
# | ||
# - name: Download the aab build output | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: android-aab-build | ||
# | ||
# - name: Download the IPA | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: Lantern.ipa | ||
# | ||
# - name: Download the Debug Symbols | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: debug-symbols.zip | ||
# | ||
# - name: Download the mapping file | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: mapping.txt | ||
# | ||
# | ||
# - name: Upload Lantern to TestFlight | ||
# uses: apple-actions/upload-testflight-build@v1 | ||
# if: (needs.set-version.outputs.prefix == 'lantern-installer-preview'|| needs.set-version.outputs.prefix == 'lantern-installer') && (needs.determine-platform.outputs.platform == 'ios' || needs.determine-platform.outputs.platform == 'all') | ||
# with: | ||
# app-path: Lantern.ipa | ||
# issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} | ||
# api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }} | ||
# api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }} | ||
# | ||
# - name: Upload Android App bundle to Play Store (beta) | ||
# if: needs.set-version.outputs.prefix == 'lantern-installer-preview' && (needs.determine-platform.outputs.platform == 'android' || needs.determine-platform.outputs.platform == 'all') | ||
# uses: r0adkll/upload-google-play@v1 | ||
# with: | ||
# serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | ||
# packageName: org.getlantern.lantern | ||
# releaseFiles: lantern-installer.aab | ||
# track: beta | ||
# debugSymbols: debug-symbols.zip | ||
# mappingFile: mapping.txt | ||
# | ||
# - name: Upload Android App bundle to Play Store (production) | ||
# if: needs.set-version.outputs.prefix == 'lantern-installer' && (needs.determine-platform.outputs.platform == 'android' || needs.determine-platform.outputs.platform == 'all') | ||
# uses: r0adkll/upload-google-play@v1 | ||
# with: | ||
# serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | ||
# packageName: org.getlantern.lantern | ||
# releaseFiles: lantern-installer.aab | ||
# track: production | ||
# debugSymbols: debug-symbols.zip | ||
# mappingFile: mapping.txt | ||
# | ||
# - 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 -f lantern-installer-x64.deb ${{ env.prefix }}-64-bit.deb | ||
# mv -f lantern-installer-x64.rpm ${{ env.prefix }}.rpm | ||
# mv -f lantern-installer.dmg ${{ env.prefix }}.dmg | ||
# diff lantern-installer-x64.exe ${{ env.prefix }}-64-bit.exe || mv -f lantern-installer-x64.exe ${{ env.prefix }}-64-bit.exe | ||
# mv -f Lantern.ipa ${{ env.prefix }}.ipa | ||
# | ||
# - 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 | ||
# shasum -a 256 ${{ env.prefix }}-64-bit.deb | cut -d " " -f 1 > ${{ env.prefix }}-64-bit.deb.sha256 | ||
# shasum -a 256 ${{ env.prefix }}.ipa | cut -d " " -f 1 > ${{ env.prefix }}.ipa.sha256 | ||
|
||
# - name: Commit | ||
# run: | | ||
# mv lantern-installer* ./lantern-binaries/ | ||
# cd lantern-binaries | ||
# git config user.email "[email protected]" | ||
# git config user.name "Lantern Bot" | ||
# git add . | ||
# git commit -m "Lantern binaries for version ${{ env.version }}" | ||
# git push origin main |