Compare commits

..

14 Commits

Author SHA1 Message Date
623ef5dc12 demo
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 10:22:31 +02:00
4fc79db1c4 .chglog/CHANGELOG.tpl.md aktualisiert 2025-05-29 10:18:36 +02:00
08121dec64 ci(log): Login Funktion hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 00:44:09 +02:00
f1e9fa1a0a fix(login): Login Funktion hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 6s
2025-05-28 21:58:48 +02:00
9df008366e fix(build): Funktion hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 4s
2025-05-28 21:24:28 +02:00
4333f15808 feat(login): Funktion hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 5s
2025-05-28 21:13:46 +02:00
a084d9ef5b docs(readme): Text erweitert 2025-05-28 21:12:05 +02:00
5f4e6d89ce fix(t): commit-msg erstellt 2025-05-28 21:08:20 +02:00
2430ead654 feat(api): add user endpoint
All checks were successful
Build Changelog and Release / release (push) Successful in 5s
2025-05-28 20:43:53 +02:00
65ec77be9c fix(ui): button alignment 2025-05-28 20:42:32 +02:00
e3cda73dc6 änderung url in realase.yaml
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-28 20:36:01 +02:00
5b8771a87d änderung url in realase.yaml
All checks were successful
Build Changelog and Release / release (push) Successful in 6s
2025-05-28 20:30:53 +02:00
87f6046cfd änderung url in realase.yaml
All checks were successful
Build Changelog and Release / release (push) Successful in 6s
2025-05-28 20:22:35 +02:00
bd41d4de23 änderung realease.yaml
Some checks failed
Build Changelog and Release / release (push) Failing after 8s
2025-05-28 20:16:08 +02:00
4 changed files with 107 additions and 16 deletions

40
.chglog/CHANGELOG.tpl.md Executable file
View File

@ -0,0 +1,40 @@
{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## Demo {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
### test
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}
{{- if .RevertCommits -}}
### Reverts
{{ range .RevertCommits -}}
* {{ .Revert.Header }}
{{ end }}
{{ end -}}
{{- if .MergeCommits -}}
### Pull Requests
{{ range .MergeCommits -}}
* {{ .Header }}
{{ end }}
{{ end -}}
{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

28
.chglog/config.yml Executable file
View File

@ -0,0 +1,28 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://dev.ksite.de/ralf.kirchner/demo
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
header:
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
pattern_maps:
- Type
- Scope
- Subject
notes:
keywords:
- BREAKING CHANGE

View File

@ -1,29 +1,44 @@
name: Release name: Build Changelog and Release
on: on:
push: push:
branches: tags:
- main - 'v*.*.*'
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup Node.js - name: Install git-chglog
uses: actions/setup-node@v3 run: |
with: 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
node-version: '20' sudo mv git-chglog /usr/local/bin/
- name: Install dependencies - name: Generate changelog
run: npm ci run: |
git-chglog $(git describe --tags --abbrev=0) > RELEASE_NOTES.md
- name: Run semantic-release - name: Create Release on Gitea
run: npx semantic-release
- name: Create Gitea release
run: .gitea/workflows/create-gitea-release.sh
env: env:
GITEA_TOKEN: ${{ secrets.GIT_TOKEN }} GITEA_TOKEN: ${{ secrets.TOKEN }}
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
}"

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# Demo Project
## Test
Das ist ein Test
Test 01
test 03