Skip to content

Commit

Permalink
chore: cleaning up changelog and release (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-jeffery authored Jun 18, 2024
1 parent 8a155b9 commit 91021e8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,27 @@ on:
jobs:
test:
uses: ./.github/workflows/main.yaml

create-release:
runs-on: ubuntu-latest
needs: [publish-maven-central, publish-github-packages]
permissions:
contents: write
packages: write # publish a new github release
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 0

- name: Create Release
uses: Roang-zero1/github-create-release-action@57eb9bdce7a964e48788b9e78b5ac766cb684803 # v3.0.1
with:
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
changelog_file: CHANGELOG.md
create_draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish:
needs: test
runs-on: ubuntu-latest
Expand Down
17 changes: 17 additions & 0 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Release Process

## Bump version number

- Update the `version` number in `build.gradle.kts`
- Update the `pluginVersion` number in `gradle.properties`

## Update the CHANGELOG

You will need to;
- update the [CHANGELOG.md](../CHANGELOG.md)
- update the "change-notes" section of the [plugin.xml](../src/main/resources/META-INF/plugin.xml)
- This will appear in the "What's new?" section of the plugin page

## When ready, push a new tag

`git tag -a -s v[0-9]+.[0-9]+.[0-9]+`

0 comments on commit 91021e8

Please sign in to comment.