diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml new file mode 100644 index 00000000..b225b5a6 --- /dev/null +++ b/.github/workflows/release-notes.yml @@ -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/release-changelog-builder-action@v3.2.0 + with: + configurationJson: | + { + "template": "#{{CHANGELOG}}\n\n
\nUncategorized\n\n#{{UNCATEGORIZED}}\n
", + "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: + + ``` + + org.into-cps.maestro + maestro + ${{ needs.version_change.outputs.build_version }} + + + + org.into-cps.maestro + maestro-webapi + ${{ needs.version_change.outputs.build_version }} + + ``` + + + + + ### Things that changed in this release + ${{ steps.changelog.outputs.changelog }} + draft: true + prerelease: true + + +