This repository has been archived by the owner on Mar 21, 2023. It is now read-only.
forked from JLLeitschuh/ktlint-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55f85d8
commit 8e542fd
Showing
9 changed files
with
61 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "Prepare for Release" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
new_version: | ||
|
||
description: "Release Version (no 'v')" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
prepare-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Update Changelog | ||
uses: thomaseizinger/[email protected] | ||
with: | ||
tag: v${{ github.event.inputs.new_version }} | ||
version: ${{ github.event.inputs.new_version }} | ||
- name: Update README | ||
run: | | ||
stripped_version=$(echo "${{ github.event.inputs.new_version }}" | sed -e 's/\.//g') | ||
formatted_date=$(date "+%Y%m%d") | ||
sed 's|\(Latest plugin version: \[\).*\(\](/CHANGELOG.md#\).*---.*)|\1'"$stripped_version"'\21031---'"$formatted_date"')|' README.md | ||
- name: Update VERSION_CURRENT | ||
run: echo "${{ github.event.inputs.new_version }}\n" > plugin/VERSION_CURRENT.txt | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: changed_files | ||
path: | | ||
CHANGELOG.md | ||
README.md | ||
plugin/VERSION_CURRENT.txt | ||
plugin/VERSION_LATEST_RELEASE.txt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Releasing | ||
|
||
How to perform a release of the plugin. | ||
|
||
1. Update the `CHANGELOG.md` and `VERSION.txt` file by running the | ||
[Prepare for Release](https://github.com/JLLeitschuh/ktlint-gradle/actions/workflows/prepare-release.yaml) | ||
GitHub action. | ||
2. Verify that the [CHANGELOG.md](https://github.com/JLLeitschuh/ktlint-gradle/blob/master/CHANGELOG.md) file looks good. | ||
|
||
**NOTE**: The `## [Unreleased]` header should still remain in the document, but should be empty. | ||
This is expected by the GitHub release note upload step. | ||
3. Run the | ||
[Perform Release](https://github.com/JLLeitschuh/ktlint-gradle/actions/workflows/perform-release.yaml) GitHub action. | ||
This will actually perform the release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10.3.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters