Update the version to 0.14.0(26) #29
Workflow file for this run
This file contains hidden or 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: Release dogfood to the Telegram channel | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - dogfood | |
| env: | |
| java_version: 17 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: Dogfood | |
| strategy: | |
| matrix: | |
| include: | |
| - name: Main APK | |
| gradle-command: app:assembleRelease | |
| result: app/build/outputs/apk/release/*.apk | |
| name: ${{ matrix.name }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Create secrets | |
| run: | | |
| echo "${{ secrets.SIGNING_KEYSTORE_BASE64 }}" | base64 --decode > app/ci-signing.jks | |
| echo "${{ secrets.LOCAL_PROPERTIES }}" > app/local.properties | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{env.java_version}} | |
| distribution: temurin | |
| - name: Build ${{ matrix.name }} | |
| run: ./gradlew ${{ matrix.gradle-command }} --stacktrace | |
| - name: Send files to Telegram | |
| run: | | |
| changelog=$(cd fastlane/metadata/android/en-US/changelogs/ && cat "$(ls -rt | tail -n1)" | head -c 200) | |
| for file in ${{ matrix.result }}; do | |
| if [ -f "$file" ]; then | |
| echo "Uploading $file" | |
| curl --silent --output /dev/null --show-error --fail \ | |
| -F "document=@$file" \ | |
| -F "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}" \ | |
| -F "caption=$changelog" \ | |
| "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument" | |
| fi | |
| done |