-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate publishing releases on GitHub #249
Conversation
.gitignore
Outdated
# Vi | ||
.swp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this file generated anyway? I bet they support vim too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, does it make sense to commit this at all? Would we accept a PR for emacs support in our gitignore?
Maybe this is something users should configure locally, like so? https://stackoverflow.com/a/5724476
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since its mostly me working on this code I quickly setup the gitignore to fit my working environment. User level global gitignores would be a good way of solving this as well. Probably superior even. 👍
If someone regularly commits to the project and wants an emacs gitignore I'd be happy to accept a PR. 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough
fastlane/Fastfile
Outdated
version = get_version_number(target: "JOSESwift") | ||
|
||
changelog = File.read("../CHANGELOG.md") | ||
changes = changelog[/(- .+\(#.+\)\n)+/] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this regex doing? I get you're stripping chars, but why exactly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filtering out the latest change set.
Blablabla
[1.2.0]
- Do Something (#123)
- Do Something else (#100)
[1.1.0]
- Start something (#99)
Will become:
- Do Something (#123)
- Do Something else (#100)
Which is the change log for the latest version that we want attached to the release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth dropping a source comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you're right. 👍 Will add this later!
@nathan-mohemian Updated .gitignore and Fastfile. 👌 |
Kudos, SonarCloud Quality Gate passed! |
This will automatically publish a release including the latest changelog on GitHub when the
release
lane is run.The latest release (2.3.1) was created using this lane.
Running the whole
release
lane on CI whenever a prepare pr is merged would be the next step in automating the release process.