21 Commits

Author SHA1 Message Date
Gitea CI
c00f2b91cc Bump version: 0.1.8 → 0.1.9 2025-05-21 08:45:16 +00:00
52a95c4860 Update .gitea/workflows/relase.yml 2025-05-21 09:44:53 +01:00
Gitea CI
4eab9159d4 Bump version: 0.1.7 → 0.1.8 2025-05-21 08:44:03 +00:00
6998b4f217 Update .gitea/workflows/relase.yml 2025-05-21 09:43:39 +01:00
23640ed1a0 Update .gitea/workflows/relase.yml 2025-05-21 09:41:12 +01:00
96efc6c312 new test 2025-05-21 10:37:59 +02:00
96bb75653c hard-coded milestone as test 2025-05-21 10:28:38 +02:00
f1b7d2dab8 use example from repo 2025-05-21 10:27:01 +02:00
fae5e23ba7 test in simple env 2025-05-21 10:24:34 +02:00
Gitea CI
fde71d892c Bump version: 0.1.6 → 0.1.7 2025-05-21 08:21:43 +00:00
08e2ba4cf5 Update .gitea/workflows/relase.yml 2025-05-21 09:21:17 +01:00
f37372acfa Update .gitea/workflows/relase.yml 2025-05-21 09:20:08 +01:00
00097b0301 Update .gitea/workflows/relase.yml 2025-05-21 09:19:01 +01:00
78b76b057f Update .gitea/workflows/relase.yml 2025-05-21 09:12:26 +01:00
9d04c05a40 Update .gitea/workflows/relase.yml 2025-05-21 09:11:30 +01:00
0ebae7900b Update .gitea/workflows/relase.yml 2025-05-21 09:09:19 +01:00
a521361f7c Update .gitea/workflows/relase.yml 2025-05-21 09:08:56 +01:00
acf80c9e57 Merge branch 'main' of https://git.theprivateserver.de/PHB/workflowbumptester 2025-05-21 10:06:59 +02:00
6f5957a52f Merge branch 'main' of https://git.theprivateserver.de/PHB/workflowbumptester 2025-05-21 10:06:17 +02:00
43e9660c17 test set changelog using generator 2025-05-21 10:04:18 +02:00
348ca30333 re-add softprops release 2025-05-20 15:11:40 +02:00
5 changed files with 69 additions and 57 deletions

View File

@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.1.6"
current_version = "0.1.9"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"

View File

@@ -10,4 +10,14 @@ jobs:
- name: Checkout the code
uses: actions/checkout@v4
- name: echo name
run: echo ${{ github.event.repository.owner.login }}
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:
milestone: ${{ steps.milestone-from-tag.outputs.milestone }}

View File

@@ -19,6 +19,8 @@ on:
- 'minor'
- 'patch'
jobs:
release:
runs-on: ubuntu-latest
@@ -55,62 +57,24 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Build Changelog
uses: https://github.com/mikepenz/release-changelog-builder-action@v5
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 }}
owner: WorldTeacher
- name: create Release
- 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: ${{ 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 }}
draft: false
prerelease: false
make_latest: true
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}

View 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

View File

@@ -1 +1 @@
0.1.6
0.1.9