Skip to content

Monthly Release

Monthly Release #9

name: Monthly Release
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # Trigger the workflow every month
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Bump version and push tag
id: create_tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: minor
- name: Build Changelog
id: create_release_note
uses: mikepenz/release-changelog-builder-action@v3
with:
configurationJson: |
{
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
"categories": [
{
"title": "## πŸ“„ Documentation",
"labels": ["documentation"]
},
{
"title": "## πŸ‘’ Enhancement",
"labels": ["enhancement"]
},
{
"title": "## 🐞 Bug",
"labels": ["bug"]
},
{
"title": "## πŸ—£οΈ Translation",
"labels": ["translation"]
},
{
"title": "## πŸ’¬ Other",
"labels": ["other"]
},
{
"title": "## πŸ“¦ Dependencies",
"labels": ["dependencies"]
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.create_tag.outputs.new_tag }}
release_name: Release ${{ steps.create_tag.outputs.new_tag }}
body: ${{ steps.create_release_note.outputs.changelog }}