Compare commits

..

5 Commits

Author SHA1 Message Date
5d8e00c396 .gitea/workflows/release.yml aktualisiert
Some checks failed
Create Release / release (push) Failing after 10s
2025-05-29 11:53:51 +02:00
6d3d8da80c .gitea/workflows/release.yml aktualisiert
Some checks failed
Release / release (push) Failing after 1m21s
2025-05-29 11:48:29 +02:00
6b0c286749 feat(2): test1 hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 11:18:09 +02:00
e8196f2e02 feat(1): test1 hinzugefügt 2025-05-29 11:17:31 +02:00
2383627b93 .chglog/CHANGELOG.tpl.md aktualisiert
All checks were successful
Build Changelog and Release / release (push) Successful in 6s
2025-05-29 11:15:59 +02:00
3 changed files with 48 additions and 38 deletions

View File

@ -1,36 +1,37 @@
{{- range .Versions }} {{ range .Versions }}
<a name="{{ .Tag.Name }}"></a> <a name="{{ .Tag.Name }}"></a>
## BlueMastoFeed {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} ## BlueMastoFeed {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
{{- if .CommitGroups }} {{ if .CommitGroups }}
### Changes ### Changes
{{ range .CommitGroups }} {{ range .CommitGroups }}
#### {{ .Title }} #### {{ .Title }}
{{ range .Commits }} {{ range .Commits }}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
[`{{ printf "%s" .Hash | slice 0 7 }}`]({{ $.Info.RepositoryURL }}/commit/{{ .Hash }}) by @{{ .Author.Name }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{- if .MergeCommits }} {{ if .MergeCommits }}
### Pull Requests ### Pull Requests
{{ range .MergeCommits }} {{ range .MergeCommits }}
- {{ .Header }} - {{ .Header }}
[`{{ printf "%s" .Hash | slice 0 7 }}`]({{ $.Info.RepositoryURL }}/commit/{{ .Hash }}) by @{{ .Author.Name }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{- if .RevertCommits }} {{ if .RevertCommits }}
### Reverts ### Reverts
{{ range .RevertCommits }} {{ range .RevertCommits }}
- {{ .Revert.Header }} - {{ .Revert.Header }}
[`{{ printf "%s" .Hash | slice 0 7 }}`]({{ $.Info.RepositoryURL }}/commit/{{ .Hash }}) by @{{ .Author.Name }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{- if .NoteGroups }} {{ if .NoteGroups }}
### Notes ### Notes
{{ range .NoteGroups }} {{ range .NoteGroups }}
#### {{ .Title }} #### {{ .Title }}
{{ range .Notes }} {{ range .Notes }}
@ -38,5 +39,4 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -1,44 +1,51 @@
name: Build Changelog and Release name: Create Release
on: on:
push: push:
tags: tags:
- 'v*.*.*' - 'v*' # Startet nur bei Tags wie v1.0.0
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Enable debug output
run: |
set -x
- name: Checkout source
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Extract repository info
run: |
echo "REPO=${GITEA_REPOSITORY#*/}" >> $GITEA_ENV
echo "OWNER=${GITEA_REPOSITORY%/*}" >> $GITEA_ENV
- name: Install git-chglog - name: Install git-chglog
run: | run: |
curl -sSL https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz | tar -xz GIT_CHGLOG_VERSION="0.15.1"
curl -sSL "https://github.com/git-chglog/git-chglog/releases/download/v${GIT_CHGLOG_VERSION}/git-chglog_${GIT_CHGLOG_VERSION}_linux_amd64.tar.gz" -o git-chglog.tar.gz
tar -xzf git-chglog.tar.gz
chmod +x git-chglog
sudo mv git-chglog /usr/local/bin/ sudo mv git-chglog /usr/local/bin/
- name: Generate changelog - name: Show git-chglog version
run: git-chglog --version
- name: Generate CHANGELOG.md for current tag
run: | run: |
git-chglog $(git describe --tags --abbrev=0) > RELEASE_NOTES.md TAG=$(git describe --tags --abbrev=0)
echo "Generating changelog for tag: $TAG"
- name: Create Release on Gitea git-chglog -o CHANGELOG.md "$TAG"
env: echo "Changelog generated:"
GITEA_TOKEN: ${{ secrets.TOKEN }} cat CHANGELOG.md
run: |
TAG=$(git describe --tags)
REPO=${GITEA_REPOSITORY#*/}
OWNER=${GITEA_REPOSITORY%/*}
BODY=$(cat RELEASE_NOTES.md | jq -Rs .)
curl -X POST "https://dev.ksite.de/api/v1/repos/ralf.kirchner/demo/releases" \
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"tag_name\": \"$TAG\",
\"name\": \"$TAG\",
\"body\": $BODY,
\"draft\": false,
\"prerelease\": false
}"
- name: Create Gitea Release
uses: https://gitea.com/actions/release-action@main
with:
api_key: ${{ secrets.TOKEN }}
owner: ${{ env.OWNER }}
repo: ${{ env.REPO }}
tag: ${{ github.ref_name }}
body_file: CHANGELOG.md

View File

@ -0,0 +1,3 @@
1
2