Skip to content

Commit

Permalink
chore(ci): remove push to telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
CielNeko authored Feb 18, 2024
1 parent 1c18da3 commit b8ba386
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

0 comments on commit b8ba386

Please # to comment.