Skip to content

Update Telegram community URL #57

Update Telegram community URL

Update Telegram community URL #57

Workflow file for this run

name: Android Build
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run Tests
run: ./gradlew test
- name: Build Project
run: ./gradlew assemble
- name: Get apk path
id: apk-path-id
run: echo "::set-output name=apk-path::$(find app -name "*.apk" | head -1)"
shell: bash
- name: Upload Default Apk
uses: actions/upload-artifact@v2
id: upload
with:
name: PR-${{ github.event.number }}
path: ${{ steps.apk-path-id.outputs.apk-path }}
retention-days: 2
- name: Build GooglePlay Variant
run: ./gradlew assembleGooglePlay
- name: Get apk path
id: google-play-apk-path-id
run: echo "::set-output name=google-play-apk-path::$(find app -name "*GooglePlay*.apk" | head -1)"
shell: bash
- name: Upload GooglePlay Apk
uses: actions/upload-artifact@v2
id: upload-googpe-play
with:
name: PR-${{ github.event.number }}-googleplay
path: ${{ steps.google-play-apk-path-id.outputs.google-play-apk-path }}
retention-days: 2
- name: upload apk
uses: wei/curl@v1
with:
args: --upload-file ${{ steps.apk-path-id.outputs.apk-path }} https://transfer.sh/PR-${{ github.event.number }}.apk -o apkpath.txt
- name: upload apk
id: upload-apk-path-id
run: |
echo "::set-output name=apk-path::$(cat apkpath.txt)"
shell: bash
- name: commit
uses: mshick/add-pr-comment@v2
with:
message: |
**Download apk from path: ${{ steps.upload-apk-path-id.outputs.apk-path }}**