-
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.
fix goal update logic and github actions ci
- Loading branch information
Showing
6 changed files
with
116 additions
and
124 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 |
---|---|---|
|
@@ -12,36 +12,38 @@ jobs: | |
|
||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
steps: | ||
# Setup Java environment in order to build the Android app. | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: '12.x' | ||
|
||
# Flutter Setup | ||
- uses: subosito/flutter-action@v1 | ||
distribution: 'zulu' | ||
java-version: '11' | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.7.9' | ||
|
||
flutter-version: '3.13.8' | ||
- run: flutter pub get | ||
|
||
- name: Dectypt keys | ||
- name: Decrypt keys | ||
run: | | ||
echo "${{ secrets.ANDROID_RELEASE_KEYSTORE }}" > android/release.keystore.asc | ||
echo "${{ secrets.KEY_PROPERTIES }}" > android/key.properties.asc | ||
gpg -d --passphrase "${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSPHRASE }}" --batch android/release.keystore.asc > android/app/release.keystore | ||
gpg -d --passphrase "${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSPHRASE }}" --batch android/key.properties.asc > android/key.properties | ||
# - run: flutter test | ||
|
||
- name: Get Tag name (version code) | ||
uses: olegtarasov/[email protected] | ||
id: tagName | ||
with: | ||
tagRegex: 'v([0-9]+.[0-9]+.[0-9]+)' # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined. | ||
tagRegexGroup: 1 # Optional. Default is 1. | ||
|
||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y%m%d')" | ||
|
||
- name: Build AAB | ||
run: flutter build appbundle --release --build-number ${{ github.run_number }} --build-name ${{ env.GIT_TAG_NAME }} | ||
run: flutter build appbundle --release --build-number ${{ steps.date.outputs.date }}01 --build-name ${{ env.GIT_TAG_NAME }} | ||
|
||
- name: Create Github Release | ||
uses: ncipollo/release-action@v1 | ||
|
@@ -55,23 +57,3 @@ jobs: | |
tag: ${{ env.GIT_TAG_NAME }} | ||
name: APPBUNDLE | ||
path: build/app/outputs/bundle/release/app-release.aab | ||
|
||
# release_android_beta: | ||
# name: Release Android Artifacts to beta track | ||
# needs: [build_aab] | ||
# runs-on: self-hosted | ||
# steps: | ||
# - uses: actions/checkout@v1 | ||
# - name: Get APPBUNDLE from Artifacts | ||
# uses: actions/download-artifact@v2 | ||
# with: | ||
# name: APPBUNDLE | ||
# - name: Release APPBUNDLE to internal track | ||
# uses: r0adkll/upload-google-play@v1 | ||
# with: | ||
# serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICE_JSONKEY }} | ||
# packageName: io.hawkford.fredericapp | ||
# releaseFile: app-release.aab | ||
# track: beta | ||
# whatsNewDirectory: distribution/whatsnew | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
yarn run build | ||
firebase deploy --only hosting | ||
|
||
https://firecms.co/docs/deployment |
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
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