From 4c6023f2484ad1f209597f945ccb28952d09b643 Mon Sep 17 00:00:00 2001 From: Seth Schroeder Date: Mon, 18 Sep 2023 19:13:00 +0200 Subject: [PATCH 1/2] rename github actions workflows --- .github/workflows/production.yml | 2 +- .github/workflows/testing.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index ca51a1f286..9aefc6662b 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -1,4 +1,4 @@ -name: Build and release app to production +name: Production - build and release app on: push: diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 6181eeebf3..77d04947f5 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1,4 +1,4 @@ -name: Android CI +name: Testing - build and release app on: push: From 1c3225506411e0977de3de0be014775fd42c73ae Mon Sep 17 00:00:00 2001 From: Seth Schroeder Date: Mon, 18 Sep 2023 19:19:33 +0200 Subject: [PATCH 2/2] use github token in fastlane production run --- .github/workflows/production.yml | 3 ++- fastlane/Fastfile | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 9aefc6662b..22dbbb9431 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -57,4 +57,5 @@ jobs: run: bundle exec fastlane prod env: KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }} - KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }} \ No newline at end of file + KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 004b6e5b3c..3dbc375d07 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -28,6 +28,8 @@ lane :prod do version_code = get_properties_value(key: "VERSION_CODE", path: "./app/version.properties") version_name = get_properties_value(key: "VERSION_NAME", path: "./app/version.properties") + github_token = ENV["GITHUB_TOKEN"] + whats_new = File.read("../app/src/main/assets/whats-new.txt") File.write("metadata/android/en-US/changelogs/" + version_code + ".txt", whats_new) @@ -44,7 +46,7 @@ lane :prod do name: version_name, tag_name: "v" + version_name, description: whats_new, - commitish: git_branch, + commitish: "master", upload_assets: [apk_path_debug, apk_path_release], is_draft: false, is_prerelease: false