-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: packaging anothor apk with
org.telegram.messenger
Signed-off-by: Next Alone <[email protected]>
- Loading branch information
Showing
1 changed file
with
27 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Get short SHA | ||
run: | | ||
run: | | ||
echo "SHA7=$(echo ${GITHUB_SHA} | cut -c1-7)" >> $GITHUB_ENV | ||
- name: Setup Java | ||
|
@@ -110,6 +110,31 @@ jobs: | |
name: mapping | ||
path: TMessagesProj/build/outputs/mapping | ||
|
||
- name: Debug Build (Telegram) | ||
run: | | ||
echo -e "RELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }}\nRELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }}\nRELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }}">>local.properties | ||
cat > service_account_credentials.json << EOF | ||
${{ secrets.ANDROID_PUBLISHER_CREDENTIALS }}" | ||
EOF | ||
sed -i '[email protected]@org.telegram.messenger@' TMessagesProj/build.gradle.kts | ||
sed -i '[email protected]@org.telegram.messenger@' TMessagesProj/google-services.json | ||
./gradlew TMessagesProj:assembleRelease | ||
echo "APK_FILE=$(find TMessagesProj/build/outputs/apk -name '*arm64*.apk')" >> $GITHUB_ENV | ||
- uses: actions/upload-artifact@master | ||
name: Upload apk (arm64-v8a) (Telegram) | ||
with: | ||
name: Nnngram-arm64-v8a-${{ env.SHA7 }}-Telegram | ||
path: ${{ env.APK_FILE }} | ||
|
||
- name: Upload mapping | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: mapping-Telegram | ||
path: TMessagesProj/build/outputs/mapping | ||
|
||
|
||
|
||
upload: | ||
name: Upload Release | ||
if: ${{ github.event_name != 'pull_request' && success() && github.ref == 'refs/heads/main' }} | ||
|
@@ -132,6 +157,7 @@ jobs: | |
- name: find apk | ||
run: | | ||
mkdir apks | ||
find artifacts -name "Telegram/*.apk" -exec rm {} \; | ||
find artifacts -name "*.apk" -exec cp {} apks \; | ||
echo "APK_FILE_UPLOAD=$(find apks -name '*arm64*.apk')" >> $GITHUB_ENV | ||
|