Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Sep 18, 2023
2 parents ca1cbc2 + 00a44cc commit 5e64293
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ jobs:
run: echo "$GOOGLE_PLAY_SERVICE_ACCOUNT" > google-play-service-account.json

- name: Build apk with fastlane
run: bundle exec fastlane prod
run: bundle exec fastlane prod github_token:${{ secrets.GITHUB_TOKEN }}
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
7 changes: 2 additions & 5 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

update_fastlane
sh("bundle install")

default_platform(:android)
Expand All @@ -24,12 +23,10 @@ lane :testing do
end

desc "Create and deploy production release"
lane :prod do
lane :prod do |options|
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 @@ -42,7 +39,7 @@ lane :prod do

github_release = set_github_release(
repository_name: "keymapperorg/KeyMapper",
api_token: github_token,
api_token: options[:github_token],
name: version_name,
tag_name: "v" + version_name,
description: whats_new,
Expand Down

0 comments on commit 5e64293

Please sign in to comment.