diff --git a/.gitea/workflows/android.yml b/.gitea/workflows/android.yml index b146678..a7c7b79 100644 --- a/.gitea/workflows/android.yml +++ b/.gitea/workflows/android.yml @@ -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