diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 00000000..5d72c8d8 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,40 @@ +name: compileAPKIPA + +on: + pull_request: + types: + - opened + - synchronize + +jobs: + compile_IPA_APK: + runs-on: ubuntu-latest + + + steps: + - name: Checkout code with submodules + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: Read app version from YAML + run: | + APP_VERSION=$(sed -n 's/^version:[ ]*//p' pubspec.yaml | tr -d '[:space:]') + echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.7.12 + - uses: oberhauser-dev/flutter-release-action@v0 + with: + token: ${{ github.token }} + dry-run: true + app-name: 'moonchain_app' + app-version: ${{ env.APP_VERSION }} + tag: ${{ github.ref }} + build-type: 'apk' + build-args: |- + --flavor product + --release diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml deleted file mode 100644 index c49dbed0..00000000 --- a/.github/workflows/test-action.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: GPTReviewWorkflow - -on: - pull_request: - types: - - opened - - synchronize - -jobs: - review_with_gpt: - runs-on: ubuntu-latest - - steps: - - name: GPTReviewWorkflow - uses: sheenhx/GPT4ReviewWorkflow@chunk - with: - GIT_COMMIT_HASH: ${{ github.event.pull_request.head.sha }} - GIT_PATCH_OUTPUT: ${{ github.event.pull_request.patch_url }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_ORG_KEY: ${{ secrets.OPENAI_ORG_KEY }} - PR_NUMBER: ${{ github.event.pull_request.number }} - PR_TITLE: ${{ github.event.pull_request.title }} - REPOSITORY_NAME: ${{ github.repository }} diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml deleted file mode 100644 index c778cee3..00000000 --- a/.github/workflows/translate.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Translate - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - translate: - runs-on: ubuntu-latest - - steps: - - name: translate - uses: sheenhx/translatei18n - with: - GIT_COMMIT_HASH: ${{ github.event.pull_request.head.sha }} - GIT_PATCH_OUTPUT: ${{ github.event.pull_request.patch_url }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_ORG_KEY: ${{ secrets.OPENAI_ORG_KEY }} - PR_NUMBER: ${{ github.event.pull_request.number }} - PR_TITLE: ${{ github.event.pull_request.title }} - REPOSITORY_NAME: ${{ github.repository }} diff --git a/pubspec.yaml b/pubspec.yaml index 8ed3055d..9623cb91 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -103,7 +103,7 @@ dev_dependencies: flutter_lints: ^2.0.0 flutter_test: sdk: flutter - + # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter packages.