Skip to content

Commit

Permalink
set release status to in_progress
Browse files Browse the repository at this point in the history
  • Loading branch information
thebino committed Aug 19, 2023
1 parent 8cde670 commit 68d3f5e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/continuous-delivery-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
./gradlew --console=plain detekt
- name: Upload detekt reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: detekt
path: app/build/reports/detekt/
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
./gradlew --console=plain lint
- name: Upload lint reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: lint
path: |
Expand Down Expand Up @@ -149,14 +149,14 @@ jobs:
- name: Decode Android Keystore
id: decode_keystore
uses: timheuer/base64-to-file@v1.1
uses: timheuer/base64-to-file@v1.2
with:
fileName: 'android_release.keystore'
encodedString: ${{ secrets.ANDROID_KEYSTORE }}

- name: Decode Gradle Play Publisher Credentials
id: decode_play_store_credentials
uses: timheuer/base64-to-file@v1.1
uses: timheuer/base64-to-file@v1.2
with:
fileName: 'gradle_playstore_publisher_credentials.json'
fileDir: './'
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:

- name: Upload artifact
if: always()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: androidTests
path: app/build/reports/androidTests
Expand Down Expand Up @@ -285,14 +285,14 @@ jobs:
- name: Decode Android Keystore
id: decode_keystore
uses: timheuer/base64-to-file@v1.1
uses: timheuer/base64-to-file@v1.2
with:
fileName: 'android_release.keystore'
encodedString: ${{ secrets.ANDROID_KEYSTORE }}

- name: Decode Gradle Play Publisher Credentials
id: decode_play_store_credentials
uses: timheuer/base64-to-file@v1.1
uses: timheuer/base64-to-file@v1.2
with:
fileName: 'gradle_playstore_publisher_credentials.json'
fileDir: './'
Expand All @@ -317,7 +317,7 @@ jobs:
ANDROID_JSON_KEY_FILE: './gradle_playstore_publisher_credentials.json'

- name: Upload build artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: assets
path: |
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/promote-release-in-playstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: '0'

- name: Set up JDK 17
uses: actions/setup-java@v3
Expand All @@ -50,6 +52,11 @@ jobs:
fileName: 'gradle_playstore_publisher_credentials.json'
encodedString: ${{ secrets.ANDROID_KEYSTORE }}

- name: Promote release artifact
run: |
./gradlew --console=plain app:promoteArtifact --from-track ${{ github.event.inputs.fromTrack }} --promote-track ${{ github.event.inputs.promoteTrack }} --user-fraction ${{ github.event.inputs.userFraction }}
- name: Publish release bundle
run: fastlane android promote --track_promote_to ${{ github.event.inputs.promoteTrack }} --rollout ${{ github.event.inputs.userFraction }}
env:
KEYSTORE_FILE: ${{ steps.decode_keystore.outputs.filePath }}
STORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.ANDROID_KEYSTORE_KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
ANDROID_JSON_KEY_FILE: './gradle_playstore_publisher_credentials.json'
8 changes: 6 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ platform :android do
desc "Deploy a new version to the Google Play"
lane :deploy do
upload_to_play_store(
track: "alpha",
release_status: "inProgress",
track: "beta",
rollout: "1",
skip_upload_apk: true,
skip_upload_metadata: true,
skip_upload_changelogs: true,
skip_upload_images: true,
skip_upload_screenshots: true
skip_upload_screenshots: true,
changes_not_sent_for_review: true,
ack_bundle_installation_warning: true
)
end
end

0 comments on commit 68d3f5e

Please sign in to comment.