diff --git a/.github/release-changelog-configuration.json b/.github/release-changelog-configuration.json new file mode 100644 index 0000000..b4b26d9 --- /dev/null +++ b/.github/release-changelog-configuration.json @@ -0,0 +1,53 @@ +{ + "categories": [ + { + "title": "## ๐Ÿš€ Features", + "labels": ["feature", "enhancement"] + }, + { + "title": "## ๐Ÿ› Fixes", + "labels": ["fix"] + }, + { + "title": "## ๐Ÿงช Tests", + "labels": ["test"] + }, + { + "title": "## โฌ†๏ธ Dependencies", + "labels": ["dependencies"] + } + ], + "ignore_labels": [ + "ignore" + ], + "sort": "ASC", + "template": "${{CHANGELOG}}\n\n
\nUncategorized\n\n${{UNCATEGORIZED}}\n
", + "pr_template": "- ${{TITLE}} (#${{NUMBER}})", + "empty_template": "- no changes", + "label_extractor": [ + { + "pattern": "(.) (.+)", + "target": "$1" + }, + { + "pattern": "(.) (.+)", + "target": "$1", + "on_property": "title" + } + ], + "transformers": [ + { + "pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)", + "target": "- $4\n - $6" + } + ], + "max_tags_to_fetch": 200, + "max_pull_requests": 200, + "max_back_track_time_days": 365, + "exclude_merge_branches": [ + "Owner/qa" + ], + "tag_resolver": { + "method": "semver" + } +} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c666848..318c231 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,10 +21,12 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 + - name: Set up Node.js 14.15.1 uses: actions/setup-node@v1 with: node-version: 14.15.1 + - name: Install node modules working-directory: ./src-frontend run: npm install @@ -57,6 +59,7 @@ jobs: - name: Check bundle run: ls ./bundle -l + - name: Upload Artifact uses: actions/upload-artifact@v2 with: @@ -74,9 +77,18 @@ jobs: with: name: server-artifact path: ./bundle + - name: Check bundle run: ls ./bundle -l + # Build Changelog by PRs + - name: "Build Changelog" + uses: mikepenz/release-changelog-builder-action@{latest-release} + with: + configuration: ".github/release-changelog-configuration.jsonn" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Create and publish Release - name: Create Release id: create_release @@ -86,8 +98,10 @@ jobs: with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} + body: ${{steps.github_release.outputs.changelog}} draft: false prerelease: false + - name: Upload Release Asset id: upload-release-asset uses: actions/upload-release-asset@v1