mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-05 23:19:10 +00:00
Integrate Fastlane with Github Actions
This commit is contained in:
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
@@ -62,7 +62,7 @@ jobs:
|
|||||||
run: bash ./gradlew ktlintCheck
|
run: bash ./gradlew ktlintCheck
|
||||||
|
|
||||||
apk:
|
apk:
|
||||||
name: Generate APK
|
name: Generate and upload APK
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -71,13 +71,30 @@ jobs:
|
|||||||
uses: actions/setup-java@v1.4.2
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
- uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '2.7'
|
||||||
- name: Inflate google-services.json
|
- name: Inflate google-services.json
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES }}
|
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES }}
|
||||||
run: echo $GOOGLE_SERVICES_JSON > app/google-services.json
|
run: echo $GOOGLE_SERVICES_JSON > app/google-services.json
|
||||||
- name: Build debug APK
|
- name: Inflate fastlane-service-account.json
|
||||||
run: bash ./gradlew assembleDebug
|
shell: bash
|
||||||
|
env:
|
||||||
|
FASTLANE_SERVICE_ACCOUNT_JSON: ${{ secrets.FASTLANE_SERVICE_ACCOUNT }}
|
||||||
|
run: echo $FASTLANE_SERVICE_ACCOUNT_JSON > fastlane-service-account.json
|
||||||
|
- name: Inflate firebase-service-accounts.json
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
FIREBASE_SERVICE_ACCOUNT_JSON: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
|
||||||
|
run: echo $FIREBASE_SERVICE_ACCOUNT_JSON > firebase-service-account.json
|
||||||
|
- name: Setup fastlane
|
||||||
|
run: bundle install
|
||||||
|
- name: Build APK and deploy to Firebase App Distribution
|
||||||
|
run: bundle exec fastlane nightly
|
||||||
|
env:
|
||||||
|
GOOGLE_APPLICATION_CREDENTIALS: "firebase-service-account.json"
|
||||||
- name: Upload APK
|
- name: Upload APK
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -23,7 +23,9 @@ platform :android do
|
|||||||
|
|
||||||
gradle(task: "clean assembleDebug")
|
gradle(task: "clean assembleDebug")
|
||||||
|
|
||||||
changelog_from_git_commits
|
changelog_from_git_commits(
|
||||||
|
between: ["HEAD~1", "HEAD"]
|
||||||
|
)
|
||||||
|
|
||||||
firebase_app_distribution(
|
firebase_app_distribution(
|
||||||
app: "1:455942942122:android:8036e8ee6d3f24ef150fd3",
|
app: "1:455942942122:android:8036e8ee6d3f24ef150fd3",
|
||||||
|
|||||||
Reference in New Issue
Block a user