Обновить .gitea/workflows/test.yml

This commit is contained in:
mso7nueh
2025-05-14 14:11:46 +00:00
parent 88916a570a
commit 41d1c17426

View File

@@ -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