Skip to content

Commit

Permalink
Automate uploading git tags for releases
Browse files Browse the repository at this point in the history
This is completely untested and will remain so until the next release.
  • Loading branch information
tbodt committed Sep 25, 2020
1 parent 2c59366 commit f126b23
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
lane :beta do
changelog = File.read('changelog.txt')
tag = `git describe --tags --abbrev=0 --match builds/beta/\*`.chomp
testflight_changelog = changelog + "\n" + File.read("footer.txt") + `git shortlog #{tag}..HEAD`
last_tag = `git describe --tags --abbrev=0 --match builds/\*`.chomp
testflight_changelog = changelog + "\n" + File.read("footer.txt") + `git shortlog #{last_tag}..HEAD`

build_number = latest_testflight_build_number + 1
increment_build_number(build_number: build_number)
Expand All @@ -20,8 +20,18 @@ lane :beta do
groups: ["People"]
)

add_git_tag
tag = "builds/#{build_number}"
add_git_tag(tag: tag)
push_to_git_remote
set_github_release(
repository_name: 'ish-app/ish',
tag_name: tag,
commitish: "00000000", # the tag better exist
name: "Build #{build_number}",
description: changelog,
upload_assets: ['iSH.ipa'],
api_token: ENV['GITHUB_TOKEN'],
)
slack(
message: "New build available!",
default_payloads: [],
Expand Down

0 comments on commit f126b23

Please sign in to comment.