Compare commits
53 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a960641000 | ||
|
d8139a5193
|
|||
|
|
6ffc2f6a8f | ||
| 26e0da8f0b | |||
|
|
df1688dd75 | ||
|
a222e49a1d
|
|||
| 0ae5543fd2 | |||
| ac216e659e | |||
| ab233d51df | |||
| 95ce982379 | |||
| 2ae3968679 | |||
| 36abce649a | |||
| 045417ba6f | |||
| cd7e1f2af0 | |||
| 7b3f8ce11e | |||
|
|
592703b6cc | ||
| 173d480d5b | |||
|
|
0e2e20ea28 | ||
| 7796df45e5 | |||
|
|
ae8d2b01b3 | ||
| 3bf862d843 | |||
|
|
c00f2b91cc | ||
| 52a95c4860 | |||
|
|
4eab9159d4 | ||
| 6998b4f217 | |||
| 23640ed1a0 | |||
| 96efc6c312 | |||
| 96bb75653c | |||
| f1b7d2dab8 | |||
| fae5e23ba7 | |||
|
|
fde71d892c | ||
| 08e2ba4cf5 | |||
| f37372acfa | |||
| 00097b0301 | |||
| 78b76b057f | |||
| 9d04c05a40 | |||
| 0ebae7900b | |||
| a521361f7c | |||
| acf80c9e57 | |||
| 6f5957a52f | |||
|
|
569d09b170 | ||
| 43e9660c17 | |||
| 348ca30333 | |||
|
|
71f421a833 | ||
| 110888307c | |||
|
|
4267d1f9fd | ||
| f1be200aae | |||
| 0425009bbd | |||
| b4f215f42f | |||
|
|
bad48af5e2 | ||
| e722901611 | |||
| e2b60f5f9e | |||
| 542fc9f548 |
@@ -1,5 +1,5 @@
|
||||
[tool.bumpversion]
|
||||
current_version = "0.1.2"
|
||||
current_version = "0.1.15"
|
||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||
serialize = ["{major}.{minor}.{patch}"]
|
||||
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"]
|
||||
@@ -1,48 +1,23 @@
|
||||
name: 'CI'
|
||||
name: "Tests"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Build Changelog
|
||||
uses: https://github.com/mikepenz/release-changelog-builder-action@v5
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v4
|
||||
- name: echo name
|
||||
run: echo ${{ github.event.repository.owner.login }}
|
||||
- name: Get milestone from tag
|
||||
id: milestone-from-tag
|
||||
run: |
|
||||
milestone=0.1.7
|
||||
echo "milestone=$milestone" >> $GITHUB_OUTPUT
|
||||
echo $milestone
|
||||
- name: Generate Changelog
|
||||
uses: spring-io/github-changelog-generator@v0.0.12
|
||||
with:
|
||||
platform: "gitea" # gitea or GitHub, default is GitHub
|
||||
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]*)",
|
||||
"on_property": "title",
|
||||
"target": "$1"
|
||||
}
|
||||
]
|
||||
}
|
||||
token: ${{ secrets.TOKEN }}
|
||||
- name: create Release
|
||||
uses: softprops/action-gh-release@master
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
body: ${{ steps.changelog.outputs.changelog }}
|
||||
milestone: ${{ steps.milestone-from-tag.outputs.milestone }}
|
||||
@@ -19,6 +19,8 @@ on:
|
||||
- 'minor'
|
||||
- 'patch'
|
||||
|
||||
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -43,7 +45,7 @@ jobs:
|
||||
id: bump
|
||||
run: |
|
||||
uv tool install bump-my-version
|
||||
uv tool run bump-my-version bump ${{ github.event.inputs.bump }} --allow-dirty
|
||||
uv tool run bump-my-version bump ${{ github.event.inputs.bump }}
|
||||
# echo the version to github env, the version is shown by using uv tool run bump-my-version show current_version
|
||||
echo "VERSION<<EOF" >> $GITHUB_ENV
|
||||
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
|
||||
@@ -55,23 +57,31 @@ jobs:
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
|
||||
- name: Add release notes to environment
|
||||
id: add_release_notes
|
||||
run: |
|
||||
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
||||
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
- name: Get the changelog
|
||||
run: |
|
||||
cat << "EOF"
|
||||
${{ steps.changelog.outputs.changelog }}
|
||||
EOF
|
||||
echo ${{ steps.changelog.outputs.changelog }}
|
||||
|
||||
# - name: Add release notes to environment
|
||||
# id: add_release_notes
|
||||
# run: |
|
||||
# echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
||||
# echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
||||
# echo "EOF" >> $GITHUB_ENV
|
||||
# - name: Create release
|
||||
# id: create_release
|
||||
# if: ${{ github.event.inputs.github_release == 'true' }}
|
||||
# uses: softprops/action-gh-release@master
|
||||
# with:
|
||||
# tag_name: ${{ env.VERSION }}
|
||||
# release_name: Release ${{ env.VERSION }}
|
||||
# body: ${{ env.RELEASE_NOTES }}
|
||||
# draft: false
|
||||
# prerelease: false
|
||||
# make_latest: true
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
if: ${{ github.event.inputs.github_release == 'true' }}
|
||||
uses: softprops/action-gh-release@master
|
||||
with:
|
||||
tag_name: ${{ env.VERSION }}
|
||||
release_name: Release ${{ env.VERSION }}
|
||||
body: ${{ steps.create-release-notes.outputs.release-notes }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
make_latest: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
|
||||
33
.gitea/workflows/release_notes.yml
Normal file
33
.gitea/workflows/release_notes.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
on:
|
||||
milestone:
|
||||
types: [closed]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
milestoneId:
|
||||
description: 'Milestone ID'
|
||||
required: true
|
||||
default: '1'
|
||||
name: Milestone Closure
|
||||
jobs:
|
||||
create-release-notes:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Generate changelog
|
||||
id: changelog
|
||||
uses: metcalfc/changelog-generator@3f82cef08fe5dcf57c591fe165e70e1d5032e15a # was: metcalfc/changelog-generator@v4.6.2
|
||||
with:
|
||||
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
- 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
|
||||
id: create_release
|
||||
uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # was: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: ${{ github.ref }}
|
||||
name: Release ${{ github.ref_name }}
|
||||
body: ${{ steps.changelog.outputs.changelog }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -230,3 +230,4 @@ config.yaml
|
||||
.venv
|
||||
venv
|
||||
*.log
|
||||
Wallpapers/
|
||||
Reference in New Issue
Block a user