Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from ADClock/feature/release-changelog
Browse files Browse the repository at this point in the history
Added Changelog on Releases
  • Loading branch information
V3lop5 committed Mar 9, 2021
2 parents 08e2605 + 96cdd4d commit 770b053
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/release-changelog-configuration.json
Original file line number Diff line number Diff line change
@@ -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<details>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>",
"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"
}
}
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,6 +59,7 @@ jobs:

- name: Check bundle
run: ls ./bundle -l

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 770b053

Please sign in to comment.