Skip to content

Commit

Permalink
added release creator help script
Browse files Browse the repository at this point in the history
  • Loading branch information
lausdahl committed Mar 14, 2024
1 parent 87293a6 commit cc94a81
Showing 1 changed file with 106 additions and 0 deletions.
106 changes: 106 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@

name: Manual Github Release

on:
workflow_dispatch:
inputs:
releasetag:
description: 'Release tag'
required: true
previousreleasetag:
description: 'Release tag'
required: true


jobs:


final:
name: Create release
runs-on: ubuntu-latest

needs: [ version_change , build ]
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
ref: ${{ needs.version_change.outputs.build_tag }}




- name: Create changelog config
run: echo '{"max_back_track_time_days":1095}' > configuration.json

- name: Generate changelog
id: changelog
uses: mikepenz/[email protected]
with:
configurationJson: |
{
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
"categories": [
{
"title": "## 🚀 Features",
"labels": ["feature"]
},
{
"title": "## 🐛 Fixes",
"labels": ["fix"]
},
{
"title": "## 🧪 Tests",
"labels": ["test"]
},
{
"title": "## 💬 Other",
"labels": ["other"]
},
{
"title": "## 📦 Dependencies",
"labels": ["dependencies"]
}
]
}
toTag: ${{ github.event.inputs.releasetag }}
fromTag: ${{ github.event.inputs.previousreleasetag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.releasetag }}
release_name: ${{ github.event.inputs.releasetag }}
body: |
Grab the new version from Maven central https://search.maven.org/artifact/org.into-cps.maestro/maestro/${{ needs.version_change.outputs.build_version }}/jar
and https://search.maven.org/artifact/org.into-cps.maestro/maestro-webapi/${{ needs.version_change.outputs.build_version }}/jar:
```
<dependency>
<groupId>org.into-cps.maestro</groupId>
<artifactId>maestro</artifactId>
<version>${{ needs.version_change.outputs.build_version }}</version>
</dependency>
<dependency>
<groupId>org.into-cps.maestro</groupId>
<artifactId>maestro-webapi</artifactId>
<version>${{ needs.version_change.outputs.build_version }}</version>
</dependency>
```
### Things that changed in this release
${{ steps.changelog.outputs.changelog }}
draft: true
prerelease: true



0 comments on commit cc94a81

Please sign in to comment.