Compare commits
38 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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]
|
[tool.bumpversion]
|
||||||
current_version = "0.1.2"
|
current_version = "0.1.12"
|
||||||
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}"
|
||||||
|
|||||||
@@ -1,48 +1,23 @@
|
|||||||
name: 'CI'
|
name: "Tests"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
tests:
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Build Changelog
|
- name: Checkout the code
|
||||||
uses: https://github.com/mikepenz/release-changelog-builder-action@v5
|
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:
|
with:
|
||||||
platform: "gitea" # gitea or GitHub, default is GitHub
|
milestone: ${{ steps.milestone-from-tag.outputs.milestone }}
|
||||||
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 }}
|
|
||||||
@@ -19,6 +19,8 @@ on:
|
|||||||
- 'minor'
|
- 'minor'
|
||||||
- 'patch'
|
- 'patch'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -43,7 +45,7 @@ jobs:
|
|||||||
id: bump
|
id: bump
|
||||||
run: |
|
run: |
|
||||||
uv tool install bump-my-version
|
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 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 "VERSION<<EOF" >> $GITHUB_ENV
|
||||||
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
|
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
|
||||||
@@ -55,23 +57,34 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: ${{ github.ref }}
|
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: Generate changelog
|
||||||
|
id: changelog
|
||||||
|
uses: metcalfc/changelog-generator@v4.6.2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.TOKEN }}
|
||||||
|
- name: Get the changelog
|
||||||
|
run: |
|
||||||
|
cat << "EOF"
|
||||||
|
${{ steps.changelog.outputs.changelog }}
|
||||||
|
EOF
|
||||||
|
|
||||||
# - name: Add release notes to environment
|
- name: Create release
|
||||||
# id: add_release_notes
|
id: create_release
|
||||||
# run: |
|
if: ${{ github.event.inputs.github_release == 'true' }}
|
||||||
# echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
uses: softprops/action-gh-release@master
|
||||||
# echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
with:
|
||||||
# echo "EOF" >> $GITHUB_ENV
|
tag_name: ${{ env.VERSION }}
|
||||||
# - name: Create release
|
release_name: Release ${{ env.VERSION }}
|
||||||
# id: create_release
|
body: ${{ steps.changelog.outputs.changelog }}
|
||||||
# if: ${{ github.event.inputs.github_release == 'true' }}
|
draft: false
|
||||||
# uses: softprops/action-gh-release@master
|
prerelease: false
|
||||||
# with:
|
make_latest: true
|
||||||
# tag_name: ${{ env.VERSION }}
|
env:
|
||||||
# release_name: Release ${{ env.VERSION }}
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||||
# body: ${{ env.RELEASE_NOTES }}
|
|
||||||
# draft: false
|
|
||||||
# prerelease: false
|
|
||||||
# make_latest: true
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
|
||||||
|
|||||||
38
.gitea/workflows/release_notes.yml
Normal file
38
.gitea/workflows/release_notes.yml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v[0-9]+.[0-9]+.[0-9]+
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Update CHANGELOG
|
||||||
|
id: changelog
|
||||||
|
uses: requarks/changelog-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.TOKEN }}
|
||||||
|
tag: ${{ github.ref_name }}
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: ncipollo/release-action@v1.12.0
|
||||||
|
with:
|
||||||
|
allowUpdates: true
|
||||||
|
draft: false
|
||||||
|
makeLatest: true
|
||||||
|
name: ${{ github.ref_name }}
|
||||||
|
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
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -230,3 +230,4 @@ config.yaml
|
|||||||
.venv
|
.venv
|
||||||
venv
|
venv
|
||||||
*.log
|
*.log
|
||||||
|
Wallpapers/
|
||||||
Reference in New Issue
Block a user