diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 2642767..f45f8e1 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,27 +1,42 @@ -name: build -on: [ pull_request ] +name: try-ci + +on: [pull_request] + jobs: - build-android: + try-ci: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' - - uses: subosito/flutter-action@v2 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 with: flutter-version: '3.22.0' channel: stable - - name: Build apk + + - name: Decrypt and set up keystore + run: | + echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/googlekeys.jks + + - name: Set up key.properties + run: | + echo "${{ secrets.KEY_PROPERTY }}" > android/key.properties + + - name: Build APK run: | flutter pub get - dart pub outdated - dart format - flutter build appbundle --debug - - - - - - + flutter build appbundle --release + +# - name: Upload build artifacts +# uses: actions/upload-artifact@v2 +# with: +# name: app-release.aab +# path: build/app/outputs/bundle/release/app-release.aab