fix: cd apk upload
This commit is contained in:
parent
cfe64dcb61
commit
cb983da990
|
@ -85,17 +85,20 @@ jobs:
|
||||||
# add fdroid flavor for apk upload
|
# add fdroid flavor for apk upload
|
||||||
- name: Build Fdroid Release APK
|
- name: Build Fdroid Release APK
|
||||||
if: ${{ inputs.release_type != '' && inputs.release_type != 'nightly' }}
|
if: ${{ inputs.release_type != '' && inputs.release_type != 'nightly' }}
|
||||||
run: |
|
run: ./gradlew :app:assembleFdroidRelease -x test
|
||||||
./gradlew :app:assembleFdroidRelease -x test
|
|
||||||
echo "APK_PATH=$(find . -regex '^.*/build/outputs/apk/fdroid/release/.*\.apk$' -type f | head -1)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Build Fdroid Nightly APK
|
- name: Build Fdroid Nightly APK
|
||||||
if: ${{ inputs.release_type == '' || inputs.release_type == 'nightly' }}
|
if: ${{ inputs.release_type == '' || inputs.release_type == 'nightly' }}
|
||||||
run: |
|
run: ./gradlew :app:assembleFdroidNightly -x test
|
||||||
./gradlew :app:assembleFdroidNightly -x test
|
|
||||||
echo "APK_PATH=$(find . -regex '^.*/build/outputs/apk/fdroid/nightly/.*\.apk$' -type f | head -1)" >> $GITHUB_OUTPUT
|
- if: ${{ inputs.release_type == '' || inputs.release_type == 'nightly' }}
|
||||||
|
run: echo "APK_PATH=$(find . -regex '^.*/build/outputs/apk/fdroid/nightly/.*\.apk$' -type f | head -1)" >> $GITHUB_OUTPUT
|
||||||
|
- if: ${{ inputs.release_type != '' && inputs.release_type != 'nightly' }}
|
||||||
|
run: echo "APK_PATH=$(find . -regex '^.*/build/outputs/apk/fdroid/release/.*\.apk$' -type f | head -1)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get version code
|
- name: Get version code
|
||||||
|
if: ${{ inputs.release_type == 'release' || inputs.release_type == 'prerelease' }}
|
||||||
run: |
|
run: |
|
||||||
version_code=$(grep "VERSION_CODE" buildSrc/src/main/kotlin/Constants.kt | awk '{print $5}' | tr -d '\n')
|
version_code=$(grep "VERSION_CODE" buildSrc/src/main/kotlin/Constants.kt | awk '{print $5}' | tr -d '\n')
|
||||||
echo "VERSION_CODE=$version_code" >> $GITHUB_ENV
|
echo "VERSION_CODE=$version_code" >> $GITHUB_ENV
|
||||||
|
|
Loading…
Reference in New Issue