This commit is contained in:
parent
97d9259fab
commit
05484b342a
@ -12,7 +12,14 @@ jobs:
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: cache pub deps
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.pub-cache
|
||||
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }}
|
||||
restore-keys: ${{ runner.os }}-pub-
|
||||
|
||||
- name: set up jdk
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
@ -35,14 +42,6 @@ jobs:
|
||||
|
||||
- name: build apk
|
||||
run: flutter build apk --release
|
||||
|
||||
- name: sign app apk
|
||||
run: |
|
||||
mkdir -p ~/.android
|
||||
echo "${{ secrets.SIGNING_KEY }}" | base64 -d > ~/.android/debug.keystore
|
||||
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -keystore ~/android/debug.keystore build/app/outputs/flutter-apk/app-release.apk ${{ secrets.ALIAS }}
|
||||
env:
|
||||
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
|
||||
|
||||
- name: release-build
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
|
Loading…
x
Reference in New Issue
Block a user