mirror of
https://github.com/bitwarden/android.git
synced 2024-11-21 17:05:44 +03:00
[PM-14897] Enhance build.yml run summary and fix f-droid distribution (#4296)
This commit is contained in:
parent
e804dbd48e
commit
1e0e4831b8
1 changed files with 10 additions and 3 deletions
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
@ -464,10 +464,17 @@ jobs:
|
||||||
- name: Increment version
|
- name: Increment version
|
||||||
run: |
|
run: |
|
||||||
DEFAULT_VERSION_CODE=$((11000+$GITHUB_RUN_NUMBER))
|
DEFAULT_VERSION_CODE=$((11000+$GITHUB_RUN_NUMBER))
|
||||||
|
VERSION_CODE="${{ inputs.version-code || '$DEFAULT_VERSION_CODE' }}"
|
||||||
bundle exec fastlane setBuildVersionInfo \
|
bundle exec fastlane setBuildVersionInfo \
|
||||||
versionCode:${{ inputs.version-code || '$DEFAULT_VERSION_CODE' }} \
|
versionCode:$VERSION_CODE \
|
||||||
versionName:${{ inputs.version-name || '' }}
|
versionName:${{ inputs.version-name || '' }}
|
||||||
|
|
||||||
|
regex='versionName = "([^"]+)"'
|
||||||
|
if [[ "$(cat app/build.gradle.kts)" =~ $regex ]]; then
|
||||||
|
VERSION_NAME="${BASH_REMATCH[1]}"
|
||||||
|
fi
|
||||||
|
echo "Version Name: ${VERSION_NAME}" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "Version Number: $VERSION_CODE" >> $GITHUB_STEP_SUMMARY
|
||||||
- name: Generate F-Droid artifacts
|
- name: Generate F-Droid artifacts
|
||||||
env:
|
env:
|
||||||
FDROID_STORE_PASSWORD: ${{ secrets.FDROID_KEYSTORE_PASSWORD }}
|
FDROID_STORE_PASSWORD: ${{ secrets.FDROID_KEYSTORE_PASSWORD }}
|
||||||
|
@ -528,11 +535,11 @@ jobs:
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Install Firebase app distribution plugin
|
- name: Install Firebase app distribution plugin
|
||||||
if: ${{ inputs.distribute_to_firebase || github.event_name == 'push' }}
|
if: ${{ inputs.distribute-to-firebase || github.event_name == 'push' }}
|
||||||
run: bundle exec fastlane add_plugin firebase_app_distribution
|
run: bundle exec fastlane add_plugin firebase_app_distribution
|
||||||
|
|
||||||
- name: Publish release F-Droid artifacts to Firebase
|
- name: Publish release F-Droid artifacts to Firebase
|
||||||
if: ${{ inputs.distribute_to_firebase || github.event_name == 'push' }}
|
if: ${{ inputs.distribute-to-firebase || github.event_name == 'push' }}
|
||||||
env:
|
env:
|
||||||
APP_FDROID_FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/app_fdroid_firebase-creds.json
|
APP_FDROID_FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/app_fdroid_firebase-creds.json
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue