-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Adds possibility to use PR number as version code (#652)
Co-authored-by: Simone Basso <[email protected]>
- Loading branch information
1 parent
6af25fd
commit 5658922
Showing
2 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,30 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: set up JDK 17 | ||
- name: Resolve PR number | ||
uses: jwalton/gh-find-current-pr@v1 | ||
id: findPr | ||
with: | ||
# Can be "open", "closed", or "all". Defaults to "open". | ||
state: open | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: build release | ||
- name: Build `DevFullDebug` variant | ||
if: success() && steps.findPr.outputs.number | ||
run: ./gradlew clean assembleDevFullDebug | ||
- name: upload artifact to Firebase App Distribution | ||
env: | ||
PR_NUMBER: ${{ steps.findPr.outputs.pr }} | ||
- name: Upload artifact to Firebase App Distribution | ||
uses: wzieba/[email protected] | ||
id: uploadArtifact | ||
with: | ||
appId: ${{secrets.FIREBASE_APP_ID}} | ||
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | ||
groups: testers | ||
file: app/build/outputs/apk/devFull/debug/app-dev-full-debug.apk | ||
file: app/build/outputs/apk/devFull/debug/app-dev-full-debug.apk | ||
- name: Write Summary | ||
run: | | ||
echo "View this release in the Firebase console: ${{ steps.uploadArtifact.outputs.FIREBASE_CONSOLE_URI }}" >> $GITHUB_STEP_SUMMARY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters