Skip to content

Commit fd8cb28

Browse files
committed
feat: android upload
1 parent 0dfe6c3 commit fd8cb28

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

.github/workflows/00-main.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
build-android:
2929
# set if false to disable android branch of build
3030
# if: ${{ needs.conventional-release.outputs.new_release_published == 'true' }}
31+
needs:
32+
- test
3133
# needs:
3234
# - conventional-release
3335
# - parse-screenshot
@@ -40,11 +42,26 @@ jobs:
4042
build-ios:
4143
# set if false to disable iOS branch of build
4244
# if: ${{ needs.conventional-release.outputs.new_release_published == 'true' }}
43-
# needs:
45+
needs:
46+
- test
4447
# - conventional-release
4548
# - parse-screenshot
4649
uses: ./.github/workflows/03-build-ios.yml
4750
with:
4851
# screenshot: ${{ needs.parse-screenshot.outputs.contains_screenshot }}
4952
ipa: "true"
5053
secrets: inherit
54+
55+
upload-android:
56+
# if: ${{ needs.parse-screenshot.outputs.contains_screenshot == 'false' }}
57+
needs:
58+
- build-android
59+
# - conventional-release
60+
uses: ./.github/workflows/04-upload-android.yml
61+
# with:
62+
# new_release: ${{ needs.conventional-release.outputs.new_release }}
63+
# new_release_notes: ${{ needs.conventional-release.outputs.new_release_notes }}
64+
with:
65+
new_release: "v1.0.1"
66+
new_release_notes: "test release notes"
67+
secrets: inherit
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: upload-release-android
2+
on:
3+
workflow_call:
4+
inputs:
5+
new_release:
6+
required: true
7+
type: string
8+
description: "The new release version number"
9+
new_release_notes:
10+
required: true
11+
type: string
12+
description: "The release notes for the new release"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 5
18+
defaults:
19+
run:
20+
working-directory: android
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Download app
27+
uses: actions/download-artifact@v4
28+
with:
29+
name: app-release.aab
30+
path: build/app/outputs/bundle/release/
31+
32+
# Setup Ruby, Bundler, and Gemfile dependencies
33+
- name: Setup Fastlane
34+
uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: "3.2"
37+
bundler-cache: true
38+
working-directory: android
39+
- run: bundle install
40+
41+
- run: bundle exec fastlane versioning
42+
env:
43+
PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }}
44+
45+
- run: echo "${{ inputs.new_release_notes }}" > ./fastlane/metadata/android/fr-FR/changelogs/${{ env.ANDROID_VERSION_CODE }}.txt
46+
47+
- run: bundle exec fastlane internal
48+
env:
49+
PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }}

0 commit comments

Comments
 (0)