forked from eatvio/eatvio_app
Merge pull request 'main' (#37) from eatvio/eatvio_app:main into main
Reviewed-on: mso7nueh/eatvio_app#37
This commit is contained in:
@@ -11,12 +11,13 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: Unlock login keychain
|
||||
run: |
|
||||
security unlock-keychain -p "$KEYCHAIN_PASSWORD" /Users/gitea_runner_ci/Library/Keychains/login.keychain-db
|
||||
env:
|
||||
KEYCHAIN_PASSWORD: EeChahboo9Ei
|
||||
|
||||
|
||||
- name: Flutter build
|
||||
run: |
|
||||
flutter clean
|
||||
|
||||
@@ -16,6 +16,19 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Create key.properties file
|
||||
run: |
|
||||
cat > android/key.properties <<EOF
|
||||
storePassword=${{ vars.SIGNING_STORE_PASSWORD }}
|
||||
keyPassword=${{ vars.SIGNING_KEY_PASSWORD }}
|
||||
keyAlias=${{ vars.SIGNING_KEY_ALIAS }}
|
||||
storeFile=upload-keystore.jks
|
||||
EOF
|
||||
|
||||
- name: Decode keystore from secret
|
||||
run: |
|
||||
echo "%s" "${{ vars.SIGNING_KEY_JKS }}" | base64 -d > android/app/upload-keystore.jks
|
||||
|
||||
- name: Cache Android SDK
|
||||
id: cache-sdk
|
||||
uses: "https://gitea.com/actions/cache@v4"
|
||||
@@ -104,19 +117,6 @@ jobs:
|
||||
- name: Test
|
||||
run: flutter test
|
||||
|
||||
- name: Create key.properties file
|
||||
run: |
|
||||
cat > android/key.properties <<EOF
|
||||
storePassword=${{ secrets.SIGNING_STORE_PASSWORD }}
|
||||
keyPassword=${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||
keyAlias=${{ secrets.SIGNING_KEY_ALIAS }}
|
||||
storeFile=my-release-key.jks
|
||||
EOF
|
||||
|
||||
- name: Decode keystore from secret
|
||||
run: |
|
||||
printf "%s" "${{ secrets.SIGNING_KEY_JKS }}" | base64 -d > android/app/my-release-key.jks
|
||||
|
||||
- name: Build apk
|
||||
run: flutter build apk --release
|
||||
|
||||
|
||||
Reference in New Issue
Block a user