Skip to content

Commit 7c57b27

Browse files
committed
fix: add release title and notes options, and create release step in Firebase App Distribution workflow
1 parent f302dee commit 7c57b27

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

.github/workflows/Upload To Firebase App Distribution.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,26 @@ on:
1515
required: true
1616
default: 'patch'
1717
options: [ 'major', 'minor', 'patch' ]
18-
custom_notes:
18+
release_title:
19+
type: textarea
20+
description: 'Release title'
21+
required: false
22+
release_notes:
1923
type: textarea
2024
description: 'Custom release notes (optional)'
2125
required: false
22-
notify_testers:
26+
create_release:
2327
type: boolean
24-
description: 'Notify testers about this build'
28+
description: 'Create New Release'
2529
required: false
26-
default: true
27-
debug_build:
30+
default: false
31+
notify_testers:
2832
type: boolean
29-
description: 'Build debug APK (uncheck for release APK)'
33+
description: 'Notify testers about this build'
3034
required: false
3135
default: true
3236

37+
3338
jobs:
3439
build:
3540
runs-on: ubuntu-latest
@@ -55,6 +60,11 @@ jobs:
5560
- name: Change wrapper permissions
5661
run: chmod +x ./gradlew
5762

63+
- uses: BrycensRanch/read-properties-action@v1
64+
id: all
65+
with:
66+
file: app/versions.properties
67+
all: true
5868

5969
# Create APK Debug
6070
- name: Build APK
@@ -76,3 +86,12 @@ jobs:
7686
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
7787
groups: testers
7888
file: ${{ github.event.inputs.environment == 'staging' && 'app/build/outputs/apk/debug/app-debug.apk' || 'app/build/outputs/apk/release/app-release.apk' }}
89+
90+
- name: Create Release
91+
if: ${{ github.event.inputs.create_release }}
92+
uses: elgohr/Github-Release-Action@v5
93+
env:
94+
GH_TOKEN: ${{ secrets.TMDB_GITHUB_TOKEN }}
95+
with:
96+
title: "${{ github.event.inputs.release_title || 'New Release' }}"
97+
tag: "v${{ steps.all.outputs.version_major }}.${{ steps.all.outputs.version_minor }}.${{ steps.all.outputs.version_patch }}"

app/versions.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version_major = 1
2-
version_minor = 1
3-
version_patch = 2
2+
version_minor = 0
3+
version_patch = 4

0 commit comments

Comments
 (0)