Fix deletion dialog incorrectly reappearing bug (#3620) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: APK | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
assemble_demo_apk: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout GIT | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '18' | |
- name: Gradle cache | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Build Demo APK | |
run: ./gradlew assembleDemo | |
- name: Upload APK to Github Actions | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Ivy-Wallet-Demo.apk | |
path: app/build/outputs/apk/demo/app-demo.apk | |
- name: Upload APK in Telegram Group | |
if: | | |
github.ref == 'refs/heads/main' | |
run: | | |
COMMIT_LINK="https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}" | |
COMMIT_MESSAGE=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}" | jq -r .commit.message | cut -c 1-100) | |
CAPTION=$'Ivy Wallet Demo APK:\n\n'"$COMMIT_MESSAGE"$'\n... see commit at: '"$COMMIT_LINK" | |
curl -F "chat_id=-1001647280565" \ | |
-F "document=@app/build/outputs/apk/demo/app-demo.apk" \ | |
-F "reply_to_message_id=16118" \ | |
-F "caption=$CAPTION" \ | |
https://api.telegram.org/bot${{ secrets.BOTFATHER_TELEGRAM_BOT_TOKEN }}/sendDocument |