Add release notes parameter to Firebase Release
This commit is contained in:
parent
0b46efff1f
commit
1807809c37
5 changed files with 18 additions and 14 deletions
8
.github/workflows/deploy_to_firebase.yml
vendored
8
.github/workflows/deploy_to_firebase.yml
vendored
|
|
@ -2,6 +2,10 @@ name: Deploy to Firebase
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
releaseNotes:
|
||||||
|
description: 'Release Notes attached to Firebase Build (defaults to last commit hash+message if left empty)'
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
android-publish-to-firebase:
|
android-publish-to-firebase:
|
||||||
|
|
@ -49,7 +53,7 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy to Firebase
|
- name: Deploy to Firebase
|
||||||
working-directory: ./android
|
working-directory: ./android
|
||||||
run: bundle exec fastlane deployInternalToFirebase
|
run: bundle exec fastlane deployInternalToFirebase release_notes:"${{ github.event.inputs.releaseNotes }}"
|
||||||
|
|
||||||
ios-publish-to-firebase:
|
ios-publish-to-firebase:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
@ -116,4 +120,4 @@ jobs:
|
||||||
CI_EVAL_IOS_CERT_PASSWORD: ${{ secrets.CI_EVAL_IOS_CERT_PASSWORD }}
|
CI_EVAL_IOS_CERT_PASSWORD: ${{ secrets.CI_EVAL_IOS_CERT_PASSWORD }}
|
||||||
CI_EVAL_INTERNAL_APP_IDENTIFIER: ${{ secrets.CI_EVAL_INTERNAL_APP_IDENTIFIER }}
|
CI_EVAL_INTERNAL_APP_IDENTIFIER: ${{ secrets.CI_EVAL_INTERNAL_APP_IDENTIFIER }}
|
||||||
working-directory: ./ios
|
working-directory: ./ios
|
||||||
run: bundle exec fastlane deployInternalToFirebase
|
run: bundle exec fastlane deployInternalToFirebase release_notes:"${{ github.event.inputs.releaseNotes }}"
|
||||||
|
|
@ -37,7 +37,7 @@ platform :android do
|
||||||
desc "```"
|
desc "```"
|
||||||
lane :deployInternalToFirebase do |options|
|
lane :deployInternalToFirebase do |options|
|
||||||
release_notes = options[:release_notes]
|
release_notes = options[:release_notes]
|
||||||
if release_notes.nil?
|
if release_notes.nil? || release_notes.empty?
|
||||||
commit = last_git_commit
|
commit = last_git_commit
|
||||||
release_notes = "Last commit with hash: #{commit[:commit_hash]} and message: #{commit[:message]}"
|
release_notes = "Last commit with hash: #{commit[:commit_hash]} and message: #{commit[:message]}"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
|
||||||
|
|
||||||
## Android
|
## Android
|
||||||
|
|
||||||
### android deployInternalFirebase
|
### android deployInternalToFirebase
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
[bundle exec] fastlane android deployInternalFirebase
|
[bundle exec] fastlane android deployInternalToFirebase
|
||||||
```
|
```
|
||||||
|
|
||||||
Submit a new Internal Build to Firebase
|
Submit a new Internal Build to Firebase
|
||||||
|
|
@ -27,7 +27,7 @@ Submit a new Internal Build to Firebase
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
||||||
[bundle exec] fastlane deployInternalFirebase release_notes:"testing notes"
|
[bundle exec] fastlane deployInternalToFirebase release_notes:"testing notes"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -41,21 +41,21 @@ Create new Release APK
|
||||||
|
|
||||||
Find it under app/build/outputs/apk/release
|
Find it under app/build/outputs/apk/release
|
||||||
|
|
||||||
### android deployProdPlayStore
|
### android deployProdToPlayStore
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
[bundle exec] fastlane android deployProdPlayStore
|
[bundle exec] fastlane android deployProdToPlayStore
|
||||||
```
|
```
|
||||||
|
|
||||||
Submit a new Production Build to Play Store
|
Submit a new Production Build to Play Store
|
||||||
|
|
||||||
By Default it sets the version_code to last from Playstore + 1.
|
By Default it sets the version_code to last from PlayStore + 1.
|
||||||
|
|
||||||
>Optionally version code increase can be skipped via:
|
>Optionally version code increase can be skipped via:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
||||||
[bundle exec] fastlane deployInternalFirebase skip_build_number_increase:1
|
[bundle exec] fastlane deployProdToPlayStore skip_build_number_increase:1
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ platform :ios do
|
||||||
desc "```"
|
desc "```"
|
||||||
lane :deployInternalToFirebase do |options|
|
lane :deployInternalToFirebase do |options|
|
||||||
release_notes = options[:release_notes]
|
release_notes = options[:release_notes]
|
||||||
if release_notes.nil?
|
if release_notes.nil? || release_notes.empty?
|
||||||
commit = last_git_commit
|
commit = last_git_commit
|
||||||
release_notes = "Last commit with hash: #{commit[:commit_hash]} and message: #{commit[:message]}"
|
release_notes = "Last commit with hash: #{commit[:commit_hash]} and message: #{commit[:message]}"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
|
||||||
|
|
||||||
## iOS
|
## iOS
|
||||||
|
|
||||||
### ios deployInternalFirebase
|
### ios deployInternalToFirebase
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
[bundle exec] fastlane ios deployInternalFirebase
|
[bundle exec] fastlane ios deployInternalToFirebase
|
||||||
```
|
```
|
||||||
|
|
||||||
Creates Release Signed build and publishes it to firebase
|
Creates Release Signed build and publishes it to firebase
|
||||||
|
|
@ -27,7 +27,7 @@ Creates Release Signed build and publishes it to firebase
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
||||||
[bundle exec] fastlane deployInternalFirebase release_notes:"testing notes"
|
[bundle exec] fastlane deployInternalToFirebase release_notes:"testing notes"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue