Add android APK workflow
This commit is contained in:
41
.github/workflows/fastlane.yml
vendored
41
.github/workflows/fastlane.yml
vendored
@@ -3,23 +3,38 @@ name: Fastlane
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
# build-ios:
|
||||
# runs-on: macos-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - name: Install Node dependencies
|
||||
# run: npm install
|
||||
# - name: Install CocoaPods dependencies
|
||||
# run: pod install --project-directory=./ios
|
||||
# - name: Run fastlane setup
|
||||
# env:
|
||||
# APPLE_ACCOUNT: ${{ secrets.APPLE_ACCOUNT }}
|
||||
# TEAM_ID: ${{ secrets.TEAM_ID }}
|
||||
# run: |
|
||||
# cd ios
|
||||
# fastlane beta --verbose
|
||||
# - name: Upload artifact
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: my-artifact
|
||||
# path: output/*.ipa
|
||||
build-android:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install fastlane
|
||||
run: sudo gem install fastlane
|
||||
- name: Install Node dependencies
|
||||
run: npm install
|
||||
- name: Install CocoaPods dependencies
|
||||
run: pod install --project-directory=./ios
|
||||
- name: Run fastlane setup
|
||||
env:
|
||||
APPLE_ACCOUNT: ${{ secrets.APPLE_ACCOUNT }}
|
||||
TEAM_ID: ${{ secrets.TEAM_ID }}
|
||||
run: |
|
||||
cd ios
|
||||
fastlane beta --verbose
|
||||
- name: Generate APK
|
||||
run: fastlane android beta
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: my-artifact
|
||||
path: output/*.ipa
|
||||
path: android/build/outputs/**/*.apk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user