Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ on:
jobs:
release-android:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- id: checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2
with:
fetch-depth: 0
ref: ${{ needs.bump-app-version.outputs.currentAppVersion }}

- id: setup-node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version-file: ".node-version"

- id: yarn-cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
env:
Expand All @@ -32,31 +33,51 @@ jobs:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}

- id: install-packages
run: yarn install --frozen-lockfile
- id: setup
uses: ./.github/actions/setup-composite
run: yarn

- id: run-tsc
run: yarn tsc:noemit

- id: run-lint
run: yarn lint

- id: setup-jdk-17
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 #v3.11.0
with:
java-version: "17"
distribution: "temurin"
cache: gradle

- id: setup-android-sdk
uses: android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277 #v3.2.1

- id: bump-package-version
working-directory: ./example
run: |
yarn version --${{ github.event.inputs.releaseLevel }}
echo "APP_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- id: setup-android-sdk
uses: android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277 #v3.2.1

- id: Copy env file
working-directory: ./example
run: cp .env.example .env

- id: setup-ruby
uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf #v1.204.0
working-directory: ./example
with:
bundler-cache: true
- id: Copy env file
run: cp .env.example .env
ruby-version: .ruby-version

- id: install-gems
working-directory: ./example
run: bundle install

- id: build-release-android
working-directory: ./example
run: |
cd android && bundle exec fastlane build_apk version:APP_VERSION
cd android && bundle exec fastlane build_apk version:${{ env.APP_VERSION }}
shell: bash

- id: upload-apk
Expand Down
Loading