-
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.
- Loading branch information
Showing
7 changed files
with
122 additions
and
26 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 |
---|---|---|
|
@@ -11,33 +11,21 @@ permissions: | |
jobs: | ||
build: | ||
name: Build and Release | ||
environment: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: "11.x" | ||
distribution: temurin | ||
|
||
- run: flutter pub get | ||
working-directory: ./app | ||
|
||
# Currenly no tests :( | ||
# - run: flutter test | ||
# working-directory: ./app | ||
|
||
- run: flutter build apk --release | ||
working-directory: ./app | ||
|
||
- run: flutter build appbundle --release | ||
working-directory: ./app | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
|
||
- name: Bump version and push tag | ||
uses: anothrNick/[email protected] | ||
|
@@ -47,6 +35,14 @@ jobs: | |
WITH_V: true | ||
DEFAULT_BUMP: patch | ||
|
||
- run: echo $KEY_JKS | base64 --decode > ../keys/key.jks && sha256sum ../keys/key.jks && echo $KEY_JKS | sha256sum && echo $KEY_JKS | wc -c && flutter build apk && flutter build appbundle | ||
working-directory: ./app | ||
env: | ||
KEY_JKS: ${{ secrets.KEY_JKS }} | ||
KEY_PASSWORD: ${{ secrets.ALIAS_PASSWORD }} | ||
ALIAS_PASSWORD: ${{ secrets.KEY_PASSWORD }} | ||
VERSION: ${{ steps.tagger.outputs.new_tag }} | ||
|
||
- name: Push Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
|
This file was deleted.
Oops, something went wrong.
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 @@ | ||
report.xml |
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,37 @@ | ||
# This file contains the fastlane.tools configuration | ||
# You can find the documentation at https://docs.fastlane.tools | ||
# | ||
# For a list of all available actions, check out | ||
# | ||
# https://docs.fastlane.tools/actions | ||
# | ||
# For a list of all available plugins, check out | ||
# | ||
# https://docs.fastlane.tools/plugins/available-plugins | ||
# | ||
|
||
# Uncomment the line if you want fastlane to automatically update itself | ||
# update_fastlane | ||
|
||
default_platform(:android) | ||
|
||
platform :android do | ||
lane :build do | ||
desc "Build apk and aab" | ||
|
||
sh(command: "flutter build appbundle") | ||
sh(command: "flutter build apk") | ||
end | ||
|
||
lane :deploy do | ||
desc "Deploy a build app bundle to Google Play" | ||
|
||
upload_to_play_store( | ||
package_name: "com.vepiot.app", | ||
json_key_data: ENV['GOOGLE_JSON_KEY'], | ||
aab: "build/app/outputs/bundle/release/app-release.aab", | ||
rollout: "1", | ||
version_name: ENV['VERSION'] | ||
) | ||
end | ||
end |
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,40 @@ | ||
fastlane documentation | ||
---- | ||
|
||
# Installation | ||
|
||
Make sure you have the latest version of the Xcode command line tools installed: | ||
|
||
```sh | ||
xcode-select --install | ||
``` | ||
|
||
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) | ||
|
||
# Available Actions | ||
|
||
## Android | ||
|
||
### android build | ||
|
||
```sh | ||
[bundle exec] fastlane android build | ||
``` | ||
|
||
|
||
|
||
### android deploy | ||
|
||
```sh | ||
[bundle exec] fastlane android deploy | ||
``` | ||
|
||
|
||
|
||
---- | ||
|
||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. | ||
|
||
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). | ||
|
||
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools). |
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,2 @@ | ||
* | ||
!.gitignore |