Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Nov 16, 2024
1 parent 673ccc5 commit f6df005
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ jobs:
- name: assemble android hms debug artifact
run: ./gradlew androidApp:assembleHmsDebug

# - name: assemble foss debug artifact
# run: ./gradlew androidApp:assembleFossDebug
- name: assemble android foss debug artifact
run: ./gradlew androidApp:assembleFossDebug

# - name: assemble gms release artifact
# run: ./gradlew androidApp:assembleGmsRelease
Expand All @@ -106,6 +106,7 @@ jobs:
path: |
androidApp/build/outputs/apk/gms/debug
androidApp/build/outputs/apk/hms/debug
androidApp/build/outputs/apk/foss/debug
- name: expose version name
id: version_name
Expand All @@ -128,6 +129,7 @@ jobs:
run: |
echo "GMS_DEBUG_APK_PATH=$(find androidApp/build/outputs/apk/gms/debug -name '*.apk' -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -d' ' -f2)" >> $GITHUB_ENV
echo "HMS_DEBUG_APK_PATH=$(find androidApp/build/outputs/apk/hms/debug -name '*.apk' -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -d' ' -f2)" >> $GITHUB_ENV
echo "FOSS_DEBUG_APK_PATH=$(find androidApp/build/outputs/apk/hms/debug -name '*.apk' -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -d' ' -f2)" >> $GITHUB_ENV
- name: send android telegram message gms debug
env:
Expand Down Expand Up @@ -163,6 +165,23 @@ jobs:
-F message_thread_id="${THREAD_ID}" \
-F parse_mode="HTML"
- name: send android telegram message foss debug
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
THREAD_ID: ${{ secrets.TELEGRAM_THREAD_ID }}
MESSAGE: |
✅ <b>${{ env.VERSION_NAME }} (${{ env.VERSION_CODE }})</b>
<b>Ветка:</b> ${{ github.ref_name }}
<b>Коммит:</b> <code>${{ env.SHORT_SHA }}</code>
run: |
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendDocument" \
-F chat_id="${CHAT_ID}" \
-F document="@${{ env.FOSS_DEBUG_APK_PATH }}" \
-F caption="${{ env.MESSAGE }}" \
-F message_thread_id="${THREAD_ID}" \
-F parse_mode="HTML"
build-desktop:
needs: job-common
runs-on: ubuntu-latest
Expand Down Expand Up @@ -196,7 +215,7 @@ jobs:
key: gradle-wrapper-${{ runner.os }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}

- name: assemble macos dmg artifact
run: ./gradlew desktopApp:packageDmg
run: ./gradlew :desktopApp:packageDmg

- name: find dmg file
run: find . -name "*.dmg"
Expand Down

0 comments on commit f6df005

Please sign in to comment.