From 2d59bb365d80da82bf70db23b7393fca217adb1e Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 20 Nov 2024 03:13:13 -0600 Subject: [PATCH] Add deploy github action --- .github/workflows/deploy.yml | 25 +++++++++++++++++++++++++ fastlane/Appfile | 2 +- fastlane/Fastfile | 14 +++++++++++--- 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..60304ea55 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,25 @@ +name: Deploy + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + check: + uses: ./.github/workflows/bundle.yml + bundle: + runs-on: ubuntu-latest + needs: [ bundle ] + steps: + - name: Decode secrets + run: | + echo ${{ secrets.FASTLANE }} > "${RUNNER_TEMP}"/fastlane.json + ln -s "${RUNNER_TEMP}"/fastlane.json . + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + - name: Deploy + run: bundle exec fastlane deploy diff --git a/fastlane/Appfile b/fastlane/Appfile index 08d023786..36f2f777e 100644 --- a/fastlane/Appfile +++ b/fastlane/Appfile @@ -1,2 +1,2 @@ -json_key_file("~/.android/api-4793482975234229192-818053-e423e10743e2.json") +json_key_file("fastlane.json") package_name("org.tasks") diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 7483acdaa..7cecbe33a 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -30,10 +30,18 @@ platform :android do # You can also use other beta testing services here end - desc "Deploy a new version to the Google Play" + desc "Deploy to internal track" lane :deploy do - gradle(task: "clean assembleRelease") - upload_to_play_store + upload_to_play_store( + aab: "app/build/outputs/bundle/googleplayRelease/app-googleplay-release.aab", + mapping: "app/build/outputs/mapping/googleplayRelease/mapping.txt", + track: "internal", + ) + upload_to_play_store( + aab: "wear/build/outputs/bundle/release/wear-release.aab", + mapping: "wear/build/outputs/mapping/release/mapping.txt", + track: "wear:internal", + ) end desc "Lint"