Skip to content

Commit

Permalink
use github token in fastlane production run
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Sep 18, 2023
1 parent 4c6023f commit 1c32255
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ jobs:
run: bundle exec fastlane prod
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit 1c32255

Please sign in to comment.