-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/development' into setup-tests
- Loading branch information
Showing
54 changed files
with
1,686 additions
and
496 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,106 @@ | ||
name: Android App Release for development branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
|
||
jobs: | ||
version: | ||
name: Create version number # using GitVersion | ||
runs-on: ubuntu-latest #macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Fetch all history for all tags and branches | ||
run: git fetch --prune --depth=10000 | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.x' | ||
- name: Use GitVersion | ||
id: gitversion | ||
uses: gittools/actions/gitversion/[email protected] | ||
- name: Create android-version.txt with nuGetVersion | ||
run: echo ${{ steps.gitversion.outputs.nuGetVersion }} > android-version.txt | ||
- name: Upload android-version.txt | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: gitversion | ||
path: android-version.txt | ||
build: | ||
name: Build Appbundle and Apks | ||
needs: [ version ] | ||
runs-on: ubuntu-latest #macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '12.x' | ||
distribution: 'zulu' | ||
cache: 'gradle' | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.3.7' | ||
cache: true | ||
channel: 'stable' | ||
- run: flutter upgrade | ||
- run: flutter --version | ||
- name: Get DEV_GOOGLE_SERVICES_JSON content write it into app/src/development/google-services.json | ||
env: | ||
DEV_GOOGLE_SERVICES_JSON: ${{ secrets.DEV_GOOGLE_SERVICES_JSON }} | ||
run: echo "$DEV_GOOGLE_SERVICES_JSON" > android/app/src/development/google-services.json | ||
- run: flutter pub get | ||
# - run: flutter test | ||
- run: flutter build apk --profile --flavor development --target lib/main_development.dart | ||
# - run: flutter build appbundle | ||
- name: upload app builds files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: flutter-app-builds | ||
path: | | ||
build/app/outputs/flutter-apk/app-development-profile.apk | ||
github-deploy: | ||
name: Deploy Build to Github | ||
needs: [ build, version ] | ||
runs-on: ubuntu-latest #macos-latest | ||
steps: | ||
- name: Get android-version.txt | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: gitversion | ||
- name: Read version | ||
id: version | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: android-version.txt | ||
- name: Get app builds | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: flutter-app-builds | ||
- name: Echo android-version.txt | ||
run: echo "${{ steps.version.outputs.content }}" | ||
- name: Display structure of downloaded files | ||
run: ls -R | ||
- name: Create a Release in GitHub | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "flutter-apk/app-development-profile.apk" | ||
token: ${{ secrets.GH_TOKEN }} | ||
tag: ${{ steps.version.outputs.content }} | ||
commit: ${{ github.sha }} | ||
firebase-deploy: | ||
name: Deploy Build to Firebase App Distribution | ||
needs: [ build ] | ||
runs-on: ubuntu-latest #macos-latest | ||
steps: | ||
- name: Get app builds | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: flutter-app-builds | ||
- name: upload artifact to Firebase App Distribution | ||
uses: wzieba/Firebase-Distribution-Github-Action@v1 | ||
with: | ||
appId: ${{secrets.FIREBASE_ANDROID_APP_ID}} | ||
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | ||
groups: testers | ||
file: flutter-apk/app-development-profile.apk |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.