Skip to content

Commit 9930c4a

Browse files
committed
Add new google-play-store-release job to GitHub Actions and update release documentation
1 parent b6f347b commit 9930c4a

3 files changed

Lines changed: 58 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,37 @@ jobs:
179179
- name: Publish release to GitHub
180180
run: ./gradlew publishToGitHub
181181
env:
182-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
182+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
183+
184+
google-play-store-release:
185+
runs-on: ubuntu-latest
186+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
187+
needs: build
188+
environment:
189+
name: google-play-store-release
190+
url: https://play.google.com/store/apps
191+
steps:
192+
- name: Checkout code
193+
uses: actions/checkout@v4
194+
with:
195+
fetch-depth: 0
196+
submodules: recursive
197+
198+
- name: Set up our JDK environment
199+
uses: actions/setup-java@v4
200+
with:
201+
distribution: 'zulu'
202+
java-version: '17'
203+
204+
- name: Publish release to Google Play Store
205+
run: |
206+
./gradlew assembleProdRelease bundleProdRelease
207+
curl -F 'file=@app/build/outputs/bundle/prodRelease/app-prod-release.aab' https://oma-portal.orange.fr/oma/api/v1/external/applications/${{ secrets.OMA_APP_ID }}/artifacts -H "apiKey:${{ secrets.OMA_APP_TOKEN }}"
208+
209+
- name: Store Google Play Store artifacts
210+
uses: actions/upload-artifact@v4
211+
with:
212+
name: google-play-store
213+
path: |
214+
app/build/outputs/apk/*/*/*.apk
215+
app/build/outputs/bundle/*/*.aab

release/RELEASE.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ This file lists all the steps to follow when releasing a new version of OUDS And
2020
This task finds the next semantic version based on conventional commits and performs the following changes to the project:
2121

2222
- Update `version` project property in `gradle.properties`.
23+
- Update version of OUDS Android dependencies in various Markdown files.
2324
- Increment the app `versionCode` in associated `build.gradle.kts` file.
2425
- Update content of `CHANGELOG.md`.
26+
- Archive the documentation in `docs/previousDocVersions/X.Y.Z`.
2527

2628
You can optionally launch `prepareRelease` with a version property to force the release version:
2729

@@ -31,7 +33,7 @@ This file lists all the steps to follow when releasing a new version of OUDS And
3133

3234
- Verify the changes mentioned above, then commit and push.
3335

34-
- Create a new pull request named `Prepare release X.Y.Z` on GitHub to merge your branch into `develop`.
36+
- Create a new pull request named `chore: prepare release X.Y.Z` on GitHub to merge your branch into `develop`.
3537

3638
- Review and merge this pull request on GitHub.<br /><br />
3739

@@ -102,3 +104,24 @@ This file lists all the steps to follow when releasing a new version of OUDS And
102104
- Verify the release notes using the preview tab.
103105

104106
- Optionally check `Set as a pre-release` and click `Publish release`.<br /><br />
107+
108+
### Publish release to Google Play Store
109+
110+
- Go to [GitHub Actions](https://github.com/Orange-OpenSource/ods-android/actions), open the release workflow, click `Review deployments`, select
111+
`google-play-store-release` and click `Approve and deploy`.
112+
113+
- Go to [OMA Portal](https://oma-portal.orange.fr) and open the `Design System Toolbox [OUDS Demo]` dashboard.
114+
115+
- Click `Integrations`, find the uploaded bundle in the `Artifacts` sections and click `Create release`.
116+
117+
![Create OMA Portal release](images/google_play_store_release_01.png)
118+
119+
- Progress through the various submission steps.
120+
121+
- When step is `Store submissions`, select `Closed beta with Google Groups`, set `Email addresses` to `design-toolbox-android@googlegroups.com` and click
122+
`Go for store submission`.
123+
124+
![OMA Portal store submission](images/google_play_store_release_02.png)<br /><br />
125+
126+
- To publish the release you have to click a last time on "Got to publication". You should receive a confirmation email from OMA with a "Published" status.
127+
-
376 KB
Loading

0 commit comments

Comments
 (0)