Fix release actions

This commit is contained in:
luvletter2333 2022-01-23 15:49:40 +08:00
parent d3ff18c668
commit 7aab8fad6d
No known key found for this signature in database
GPG Key ID: A26A8880836E1978
1 changed files with 9 additions and 4 deletions

View File

@ -376,6 +376,11 @@ jobs:
run: |
chmod +x telegram-bot-api-binary
./telegram-bot-api-binary --api-id=21724 --api-hash=3e0cb5efcd52300aec5994fdfc5bdc16 --local 2>&1 > /dev/null &
curl http://127.0.0.1:8081/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage \
-X POST \
-F chat_id="${{ secrets.TELEGRAM_CHANNEL }}" \
-F text="==== ${{ github.event.inputs.tag }} ====" \
--silent --show-error --fail >/dev/null
mkdir apks
find artifacts -name "*.apk" -exec cp {} apks \;
function upload() {
@ -388,10 +393,10 @@ jobs:
--silent --show-error --fail >/dev/null
done
}
upload apks/NekoX-mini-*-release.apk
upload apks/NekoX-mini-*-releaseNoGcm.apk
upload apks/NekoX-full-*-release.apk
upload apks/NekoX-full-*-releaseNoGcm.apk
upload apks/NekoX-*-mini-*-release.apk
upload apks/NekoX-*-mini-*-releaseNoGcm.apk
upload apks/NekoX-*-full-*-release.apk
upload apks/NekoX-*-full-*-releaseNoGcm.apk
pkill telegram-bot
play:
name: Publish to Play Store