-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Miha Drofenik
committed
Dec 25, 2023
1 parent
136d914
commit afae7dc
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build and Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- initial | ||
|
||
jobs: | ||
android-build: | ||
name: Android Dev Build | ||
runs-on: ubuntu-latest | ||
container: | ||
image: reactnativecommunity/react-native-android | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
- name: Checkout repo from dev branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: initial | ||
- name: Install npm dependency | ||
run: npm install | ||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v2 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Execute Gradle build | ||
run: | | ||
cd android | ||
./gradlew build | ||
- name: Build Android JS Bundle | ||
run: | | ||
npm run package-android | ||
- name: Delete Android build duplicate assets resource | ||
run: npm run delete-pics | ||
- name: Install bundler | ||
run: | | ||
cd android | ||
gem install bundler | ||
- name: Install gem plugins | ||
run: | | ||
cd android | ||
bundle install | ||
- name: Run fastlane | ||
run: | | ||
cd android | ||
bundle exec fastlane build_qa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters