Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
basic) echo "name=decoder" ;;
v2) echo "name=decoder-v2" ;;
v3) echo "name=decoder-v3" ;;
*) echo "name=decoder-${{ github.ref_name }}" ;;
*) echo "name=decoder-$(echo '${{ github.ref_name }}' | tr '/' '-')" ;;
esac >> $GITHUB_OUTPUT

- name: Set up JDK 17
Expand All @@ -39,7 +39,19 @@ jobs:
./gradlew assembleRelease
mv app/build/outputs/apk/release/app-release.apk ${{ steps.vars.outputs.name }}.apk

# Working branches: keep the build as a workflow artifact only
- name: Upload artifact
if: github.ref_name != 'basic' && github.ref_name != 'v2'
uses: actions/upload-artifact@v4
with:
name: ${{ steps.vars.outputs.name }}
path: |
${{ steps.vars.outputs.name }}.aab
${{ steps.vars.outputs.name }}.apk

# Release branches: publish to the "latest" release and Telegram
- name: Upload
if: github.ref_name == 'basic' || github.ref_name == 'v2'
uses: softprops/action-gh-release@v2
with:
tag_name: latest
Expand All @@ -48,7 +60,12 @@ jobs:
${{ steps.vars.outputs.name }}.apk

- name: Telegram
if: github.ref_name == 'basic' || github.ref_name == 'v2'
run: |
GIT_HASH=$(git rev-parse --short HEAD)
GIT_BRANCH="${{ github.ref_name }}"
TAG_NAME="${{ github.ref_type == 'tag' && github.ref_name || '' }}"
TIME=$(date -u '+%Y-%m-%d %H:%M:%S UTC')
TG_MSG="Commit: ${GIT_HASH}\nBranch: ${GIT_BRANCH}\nTag: ${TAG_NAME}\nTime: ${TIME}\n\n"
TG_ICON="\xE2\x9C\x85 GitHub Actions"
TG_HEADER=$(echo -e ${TG_MSG}${TG_ICON})
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android {
minSdk 21
targetSdk 36
versionCode 7
versionName "1.07"
versionName "1.07.1"
}

signingConfigs {
Expand Down
Loading
Loading