From 00b4c11a329054a6e6b09d48925f17b5c1fdecb0 Mon Sep 17 00:00:00 2001 From: oxy Date: Sat, 1 Jun 2024 15:56:19 +0800 Subject: [PATCH] Update CI. --- .github/workflows/android.yml | 38 ++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 15058b27c..635d56d69 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -13,20 +13,30 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: gradle + - uses: actions/checkout@v4 + - name: set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew :androidApp:assembleSnapshotChannelRichCodecRelease + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew :androidApp:assembleSnapshotChannelRichCodecRelease - - name: Upload - uses: actions/upload-artifact@v3 - with: + - name: Upload + uses: actions/upload-artifact@v3 + with: path: "androidApp/build/outputs/apk/" + + - name: Upload To Telegram + uses: xireiki/channel-post@v1.0.7 + with: + bot_token: ${{ secrets.BOT_TOKEN }} + chat_id: ${{ secrets.CHAT_ID }} + large_file: true + method: sendFile + path: "androidApp/build/outputs/apk/" +# parse_mode: Markdown \ No newline at end of file