-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Everything for the automated apk build
-added the workflow files -apk output file name changed -added the google-service file -changed the github token handling
- Loading branch information
Showing
8 changed files
with
204 additions
and
10 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,35 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Build APK based on Commit | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build APK | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '12.x' | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: "stable" | ||
- run: flutter pub get | ||
- run: | | ||
git clone https://.:${{ secrets.TOKEN}}@github.com/Vinzent03/hidedData | ||
- run: | | ||
mv hidedData/key.properties android/ | ||
mv hidedData/Vertretung.jks android/ | ||
- run: flutter build apk | ||
continue-on-error: true | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: "build/app/outputs/apk/release/*.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Build APK based on Tag | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Build APK | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '12.x' | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: "stable" | ||
- run: flutter pub get | ||
- run: | | ||
git clone https://.:${{ secrets.TOKEN}}@github.com/Vinzent03/hidedData | ||
- run: | | ||
mv hidedData/key.properties android/ | ||
mv hidedData/Vertretung.jks android/ | ||
- run: flutter build apk | ||
continue-on-error: true | ||
- name: Create a Release APK | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifact: "build/app/outputs/apk/release/*.apk" | ||
token: ${{ secrets.TOKEN }} |
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
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
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,98 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "375733449982", | ||
"firebase_url": "https://vertretung-b5742.firebaseio.com", | ||
"project_id": "vertretung-b5742", | ||
"storage_bucket": "vertretung-b5742.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:375733449982:android:a39ffbb79863559ba061af", | ||
"android_client_info": { | ||
"package_name": "com.example.managerv2" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "375733449982-pbng2piffh4pgnol60boh6m3ougiu6sl.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyDFexN4pWnz04vYvtRfoo3k2xWJ__y_xh0" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "375733449982-pbng2piffh4pgnol60boh6m3ougiu6sl.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:375733449982:android:94c306d38bc516eaa061af", | ||
"android_client_info": { | ||
"package_name": "com.example.vertretung" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "375733449982-pbng2piffh4pgnol60boh6m3ougiu6sl.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyDFexN4pWnz04vYvtRfoo3k2xWJ__y_xh0" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "375733449982-pbng2piffh4pgnol60boh6m3ougiu6sl.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:375733449982:android:6c336853cb18b390a061af", | ||
"android_client_info": { | ||
"package_name": "com.whg.vertretung" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "375733449982-pbng2piffh4pgnol60boh6m3ougiu6sl.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyDFexN4pWnz04vYvtRfoo3k2xWJ__y_xh0" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "375733449982-pbng2piffh4pgnol60boh6m3ougiu6sl.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
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
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
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