Skip to content

Commit

Permalink
Merge pull request #8 from banjun/release-workflow
Browse files Browse the repository at this point in the history
Automate github release
  • Loading branch information
banjun committed May 30, 2020
2 parents 1f13e4c + 0a9ec2b commit 201833f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
15 changes: 13 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,23 @@ end
default_platform(:mac)

platform :mac do
lane :archive do
lane :archive do |options|
spm(configuration: 'release', build_path: '.build')
app = '.build/release/SwiftBeaker'
zipped = Pathname(app).sub_ext(".zip").to_s
sh("codesign -f -s 'Developer ID' --options runtime --timestamp ../#{app}")
sh("codesign -f -s 'Developer ID' --options runtime --timestamp ../#{app}") if options[:codesign]
zip(path: app, output_path: zipped)
end

lane :notarized_archive do
match(
git_url: ENV["MATCH_GIT_URL"],
app_identifier: ENV["MATCH_APP_IDENTIFIER"],
platform: 'macos',
type: 'developer_id',
skip_provisioning_profiles: true,
readonly: true)
zipped = archive(codesign: true)
notarize_cli(package: zipped, bundle_id: 'jp.banjun.SwiftBeaker', print_log: true, verbose: true)
end
end
5 changes: 5 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ or alternatively using `brew cask install fastlane`
fastlane mac archive
```

### mac notarized_archive
```
fastlane mac notarized_archive
```


----

Expand Down

0 comments on commit 201833f

Please sign in to comment.