forked from eatvio/eatvio_app
Обновить .gitea/workflows/test.yml
This commit is contained in:
@@ -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=${{ 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: |
|
||||
printf "%s" "${{ vars.SIGNING_KEY_JKS }}" | base64 -d > android/app/upload-keystore.jks
|
||||
|
||||
- name: Build apk
|
||||
run: flutter build apk --release
|
||||
|
||||
|
||||
Reference in New Issue
Block a user