9 Commits

Author SHA1 Message Date
Tim Basten
22e64b6dec feature: add changelog builder
Some checks failed
release / release (push) Failing after 18s
2026-02-06 11:32:23 +08:00
873a4c5237 feature: test-feature 1 (#2)
All checks were successful
release / release (push) Successful in 4s
This feature introduces cool stuff
2026-02-06 11:27:01 +08:00
Tim Basten
ea0511ae49 feature: update 2026-02-06 11:22:14 +08:00
Tim Basten
e9235bb816 update 2026-02-06 11:21:28 +08:00
Tim Basten
888cae3db2 update
All checks were successful
release / release (push) Successful in 5s
2026-02-06 11:20:01 +08:00
Tim Basten
78253e9314 update
Some checks failed
release / release (push) Failing after 3s
2026-02-06 11:14:45 +08:00
Tim Basten
77662b71d2 update
Some checks failed
release / release (push) Failing after 3s
2026-02-06 11:14:02 +08:00
Tim Basten
207f392e80 update
Some checks failed
release / release (push) Failing after 2s
2026-02-06 11:10:57 +08:00
Tim Basten
507a24eb3d update
Some checks failed
Release / release (push) Failing after 2s
2026-02-06 11:06:57 +08:00
2 changed files with 45 additions and 14 deletions

View File

@@ -1,27 +1,57 @@
name: release name: release
on: on:
push: push:
tags: tags:
- '*' - "*"
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: setup go
uses: https://github.com/actions/setup-go@v4 - name: Build Changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v6
with: with:
go-version: '>=1.20.1' mode: "COMMIT"
- name: go build configurationJson: |
run: go build -o bin/myapp {
- name: Use Go Action "template": "#{{CHANGELOG}}",
id: use-go-action "categories": [
uses: https://gitea.com/actions/release-action@main {
"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"
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Gitea Release
uses: akkuman/gitea-release-action@v1
with: with:
files: |- token: ${{ secrets.GITEA_TOKEN }}
bin/** tag_name: ${{ gitea.ref_name }}
api_key: '${{secrets.RELEASE_TOKEN}}' name: ${{ gitea.ref_name }}
body: ${{ steps.changelog.outputs.changelog }}

1
test2.yml Normal file
View File

@@ -0,0 +1 @@
asdfsdfg