Skip to content

Commit

Permalink
feat: packaging anothor apk with org.telegram.messenger
Browse files Browse the repository at this point in the history
Signed-off-by: Next Alone <[email protected]>
  • Loading branch information
NextAlone committed Jul 24, 2024
1 parent 998a32c commit 1b0c450
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' }}
Expand All @@ -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
Expand Down

0 comments on commit 1b0c450

Please sign in to comment.