Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a055276849 | ||
|
|
ce670c5539 | ||
|
7631ed6e7c
|
|||
|
cc5dc6141c
|
|||
|
|
a960641000 | ||
|
d8139a5193
|
|||
|
|
6ffc2f6a8f | ||
| 26e0da8f0b | |||
|
|
df1688dd75 | ||
|
a222e49a1d
|
|||
| 0ae5543fd2 | |||
| ac216e659e | |||
| ab233d51df | |||
| 95ce982379 | |||
| 2ae3968679 | |||
| 36abce649a | |||
| 045417ba6f | |||
| cd7e1f2af0 | |||
| 7b3f8ce11e | |||
|
|
592703b6cc | ||
| 173d480d5b |
@@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "0.1.11"
|
current_version = "0.1.17"
|
||||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||||
serialize = ["{major}.{minor}.{patch}"]
|
serialize = ["{major}.{minor}.{patch}"]
|
||||||
search = "{current_version}"
|
search = "{current_version}"
|
||||||
|
|||||||
9
.gitea/release_notes.yml
Normal file
9
.gitea/release_notes.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
changelog:
|
||||||
|
sections:
|
||||||
|
- title: ":star: New Features"
|
||||||
|
labels: ["Kind/Feature", "Kind/Enhancement"]
|
||||||
|
- title: ":lady_beetle: Bug Fixes"
|
||||||
|
labels: ["Kind/Bug", "Kind/Hotfix"]
|
||||||
|
issues:
|
||||||
|
exclude:
|
||||||
|
labels: ["wontfix", "question", "duplicate", "invalid"]
|
||||||
@@ -24,6 +24,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: "contains(github.event.head_commit.message, 'release') || github.event_name == 'workflow_dispatch'"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -58,22 +59,25 @@ jobs:
|
|||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: ${{ github.ref }}
|
branch: ${{ github.ref }}
|
||||||
|
|
||||||
|
- name: "Build Changelog"
|
||||||
|
id: build_changelog
|
||||||
|
uses: mikepenz/release-changelog-builder-action@v5.0.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Add release notes to environment
|
- name: Add release notes to environment
|
||||||
id: add_release_notes
|
id: add_release_notes
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
||||||
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
||||||
echo "EOF" >> $GITHUB_ENV
|
echo "EOF" >> $GITHUB_ENV
|
||||||
- name: Generate changelog
|
|
||||||
id: changelog
|
|
||||||
uses: metcalfc/changelog-generator@v4.6.2
|
|
||||||
with:
|
|
||||||
myToken: ${{ secrets.TOKEN }}
|
|
||||||
- name: Get the changelog
|
- name: Get the changelog
|
||||||
run: |
|
run: |
|
||||||
cat << "EOF"
|
cat << "EOF"
|
||||||
${{ steps.changelog.outputs.changelog }}
|
${{ steps.changelog.outputs.changelog }}
|
||||||
EOF
|
EOF
|
||||||
|
echo ${{ steps.changelog.outputs.changelog }}
|
||||||
|
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
@@ -82,7 +86,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
release_name: Release ${{ env.VERSION }}
|
release_name: Release ${{ env.VERSION }}
|
||||||
body: ${{ steps.changelog.outputs.changelog }}
|
body: ${{steps.build_changelog.outputs.changelog}}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
|||||||
@@ -1,38 +1,33 @@
|
|||||||
name: Deploy
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
milestone:
|
||||||
tags:
|
types: [closed]
|
||||||
- v[0-9]+.[0-9]+.[0-9]+
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
milestoneId:
|
||||||
|
description: 'Milestone ID'
|
||||||
|
required: true
|
||||||
|
default: '1'
|
||||||
|
name: Milestone Closure
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
create-release-notes:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- uses: actions/checkout@master
|
||||||
uses: actions/checkout@v3
|
- name: Generate changelog
|
||||||
|
|
||||||
- name: Update CHANGELOG
|
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: requarks/changelog-action@v1
|
uses: metcalfc/changelog-generator@3f82cef08fe5dcf57c591fe165e70e1d5032e15a # was: metcalfc/changelog-generator@v4.6.2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.TOKEN }}
|
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag: ${{ github.ref_name }}
|
- name: Generate Sprint-io Changelog
|
||||||
|
uses: spring-io/github-changelog-generator@v0.0.12
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
milestone: ${{ github.event.inputs.milestoneId }}
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: ncipollo/release-action@v1.12.0
|
id: create_release
|
||||||
|
uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # was: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
tag: ${{ github.ref }}
|
||||||
draft: false
|
name: Release ${{ github.ref_name }}
|
||||||
makeLatest: true
|
body: ${{ steps.changelog.outputs.changelog }}
|
||||||
name: ${{ github.ref_name }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
body: ${{ steps.changelog.outputs.changes }}
|
|
||||||
token: ${{ secrets.TOKEN }}
|
|
||||||
|
|
||||||
- name: Commit CHANGELOG.md
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
branch: main
|
|
||||||
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
|
|
||||||
file_pattern: CHANGELOG.md
|
|
||||||
Reference in New Issue
Block a user