Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Bump the ivy-wallet group with 47 updates #2224

Bump the ivy-wallet group with 47 updates

Bump the ivy-wallet group with 47 updates #2224

Workflow file for this run

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