From b8ba386ae26742ce6843159febc488b7077a51a7 Mon Sep 17 00:00:00 2001 From: CielNeko <68452494+CielNeko@users.noreply.github.com> Date: Sun, 18 Feb 2024 15:19:09 +0800 Subject: [PATCH] chore(ci): remove push to telegram --- .github/workflows/ci.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8cae726..14a7a4e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,33 +72,3 @@ jobs: with: name: APKs path: ${{ env.APK }} - upload: - name: Upload APK - if: ${{ github.event_name != 'pull_request'}} - runs-on: ubuntu-latest - needs: build - steps: - - name: Download Artifacts - uses: actions/download-artifact@v4 - with: - name: APKs - path: artifacts - - name: Push APKs to Telegram Group - run: | - mkdir apks - find artifacts -name "*.apk" -exec cp {} apks \; - - function upload() { - for apk in $@; do - echo ">> Uploading $apk" - curl https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendDocument \ - -X POST \ - -F chat_id="${{ secrets.TELEGRAM_GROUP }}" \ - -F document="@$apk" \ - --silent --show-error --fail >/dev/null & - done - for job in $(jobs -p); do - wait $job || exit 1 - done - } - upload apks/*