Skip to content

Commit

Permalink
feat(ci): Add release changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPoupa committed Jan 5, 2025
1 parent c6e7eda commit 262b39b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 30 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docker-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ jobs:
runs-on: ubuntu-latest

steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
-
name: DockerHub Description
- name: DockerHub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
46 changes: 36 additions & 10 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,43 @@ permissions:

jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
name: Create Release

runs-on: ubuntu-latest

steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Release
uses: softprops/action-gh-release@v2
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v5
with:
mode: "COMMIT"
configurationJson: |
{
"template": "#{{CHANGELOG}}",
"categories": [
{
"title": "## Feature",
"labels": ["feat", "feature"]
},
{
"title": "## Fix",
"labels": ["fix", "bug"]
},
{
"title": "## Other",
"labels": []
}
],
"label_extractor": [
{
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
"target": "$1"
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: mikepenz/[email protected]
with:
body: |
[CHANGELOG](https://github.com/AdrienPoupa/rclone-backup/blob/master/CHANGELOG.md)
body: ${{steps.github_release.outputs.changelog}}
16 changes: 0 additions & 16 deletions CHANGELOG.md

This file was deleted.

0 comments on commit 262b39b

Please sign in to comment.