diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml deleted file mode 100644 index f611039..0000000 --- a/.github/workflows/development.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Varnasi Mobile App Build -run-name: ${{ github.actor }} pushed to "${{ github.ref_name }}" triggering dev build 🚀 -on: - push: - branches-ignore: - - main - -env: - PROPERTIES_PATH: "./android/key.properties" - -jobs: - Androi-App-Build: - name: Android App Dev Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: "zulu" - java-version: "11" - - uses: subosito/flutter-action@v2 - with: - channel: "stable" - - run: | - echo keyPassword=\${{ secrets.KEY_PASSWORD }} >> ${{env.PROPERTIES_PATH}} - echo storePassword=\${{ secrets.STORE_PASSWORD }} >> ${{env.PROPERTIES_PATH}} - echo keyAlias=\${{ secrets.KEY_ALIAS }} >> ${{env.PROPERTIES_PATH}} - echo storeFile=\${{ secrets.STORE_FILE }} >> ${{env.PROPERTIES_PATH}} - - run: echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/key.jks - - run: flutter pub get - - name: Flutter Dev Build - run: flutter build apk --flavor development -t lib/main_development.dart - # Make appbundle downloadable - - name: Upload Dev artifacts - uses: actions/upload-artifact@v3 - with: - name: dev-release - path: build/app/outputs/flutter-apk/app-development-release.apk diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml deleted file mode 100644 index f963386..0000000 --- a/.github/workflows/production.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Varnasi Mobile App Build -run-name: ${{ github.actor }} pushed to "${{ github.ref_name }}" triggering production build 🚀 -on: - push: - branches: - - main - -env: - PROPERTIES_PATH: "./android/key.properties" - -jobs: - Androi-App-Build: - name: Android App Prod Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: "zulu" - java-version: "11" - - uses: subosito/flutter-action@v2 - with: - channel: "stable" - - run: | - echo keyPassword=\${{ secrets.KEY_PASSWORD }} >> ${{env.PROPERTIES_PATH}} - echo storePassword=\${{ secrets.STORE_PASSWORD }} >> ${{env.PROPERTIES_PATH}} - echo keyAlias=\${{ secrets.KEY_ALIAS }} >> ${{env.PROPERTIES_PATH}} - echo storeFile=\${{ secrets.STORE_FILE }} >> ${{env.PROPERTIES_PATH}} - - run: echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/key.jks - - run: flutter pub get - - name: Flutter Prod Build - run: flutter build apk --flavor production -t lib/main_production.dart - - name: Upload Prod artifacts - uses: actions/upload-artifact@v3 - with: - name: prod-release - path: build/app/outputs/flutter-apk/app-production-release.apk