Compare commits
30 Commits
Author | SHA1 | Date | |
---|---|---|---|
5d8e00c396 | |||
6d3d8da80c | |||
6b0c286749
|
|||
e8196f2e02
|
|||
2383627b93 | |||
e17b15f9b8 | |||
c2829e51d2
|
|||
697bed098c | |||
3bdc1064e4 | |||
674980cd67 | |||
ab724c7a4f | |||
baf1dc59e3 | |||
0125f02699 | |||
a1328dc32e | |||
733f16c90c | |||
034b3208c6 | |||
623ef5dc12 | |||
4fc79db1c4 | |||
08121dec64
|
|||
f1e9fa1a0a
|
|||
9df008366e
|
|||
4333f15808
|
|||
a084d9ef5b
|
|||
5f4e6d89ce
|
|||
2430ead654
|
|||
65ec77be9c
|
|||
e3cda73dc6
|
|||
5b8771a87d
|
|||
87f6046cfd
|
|||
bd41d4de23
|
42
.chglog/CHANGELOG.tpl.md
Executable file
42
.chglog/CHANGELOG.tpl.md
Executable file
@ -0,0 +1,42 @@
|
|||||||
|
{{ range .Versions }}
|
||||||
|
<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 }}
|
||||||
|
|
||||||
|
{{ if .CommitGroups }}
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
{{ range .CommitGroups }}
|
||||||
|
#### {{ .Title }}
|
||||||
|
{{ range .Commits }}
|
||||||
|
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .MergeCommits }}
|
||||||
|
### Pull Requests
|
||||||
|
|
||||||
|
{{ range .MergeCommits }}
|
||||||
|
- {{ .Header }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .RevertCommits }}
|
||||||
|
### Reverts
|
||||||
|
|
||||||
|
{{ range .RevertCommits }}
|
||||||
|
- {{ .Revert.Header }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .NoteGroups }}
|
||||||
|
### Notes
|
||||||
|
|
||||||
|
{{ range .NoteGroups }}
|
||||||
|
#### {{ .Title }}
|
||||||
|
{{ range .Notes }}
|
||||||
|
- {{ .Body }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
37
.chglog/config.yml
Executable file
37
.chglog/config.yml
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
style: github
|
||||||
|
template: CHANGELOG.tpl.md
|
||||||
|
|
||||||
|
info:
|
||||||
|
title: CHANGELOG
|
||||||
|
repository_url: https://dev.ksite.de/ralf.kirchner/demo
|
||||||
|
|
||||||
|
options:
|
||||||
|
commits:
|
||||||
|
sort_by: "date" # Optional, default is OK too
|
||||||
|
exclude_merge_commits: false
|
||||||
|
|
||||||
|
commit_groups:
|
||||||
|
group_by: "Type"
|
||||||
|
title_maps:
|
||||||
|
feat: Features
|
||||||
|
fix: Bug Fixes
|
||||||
|
perf: Performance Improvements
|
||||||
|
refactor: Code Refactoring
|
||||||
|
docs: Documentation
|
||||||
|
chore: Maintenance
|
||||||
|
test: Tests
|
||||||
|
build: Build System
|
||||||
|
ci: Continuous Integration
|
||||||
|
style: Code Style
|
||||||
|
|
||||||
|
header:
|
||||||
|
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
|
||||||
|
pattern_maps:
|
||||||
|
- Type
|
||||||
|
- Scope
|
||||||
|
- Subject
|
||||||
|
|
||||||
|
notes:
|
||||||
|
keywords:
|
||||||
|
- BREAKING CHANGE
|
||||||
|
- DEPRECATED
|
@ -1,29 +1,51 @@
|
|||||||
name: Release
|
name: Create Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- 'v*' # Startet nur bei Tags wie v1.0.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Enable debug output
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
|
||||||
|
- name: Checkout source
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Extract repository info
|
||||||
uses: actions/setup-node@v3
|
run: |
|
||||||
|
echo "REPO=${GITEA_REPOSITORY#*/}" >> $GITEA_ENV
|
||||||
|
echo "OWNER=${GITEA_REPOSITORY%/*}" >> $GITEA_ENV
|
||||||
|
|
||||||
|
- name: Install git-chglog
|
||||||
|
run: |
|
||||||
|
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/
|
||||||
|
|
||||||
|
- name: Show git-chglog version
|
||||||
|
run: git-chglog --version
|
||||||
|
|
||||||
|
- name: Generate CHANGELOG.md for current tag
|
||||||
|
run: |
|
||||||
|
TAG=$(git describe --tags --abbrev=0)
|
||||||
|
echo "Generating changelog for tag: $TAG"
|
||||||
|
git-chglog -o CHANGELOG.md "$TAG"
|
||||||
|
echo "Changelog generated:"
|
||||||
|
cat CHANGELOG.md
|
||||||
|
|
||||||
|
- name: Create Gitea Release
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
api_key: ${{ secrets.TOKEN }}
|
||||||
|
owner: ${{ env.OWNER }}
|
||||||
- name: Install dependencies
|
repo: ${{ env.REPO }}
|
||||||
run: npm ci
|
tag: ${{ github.ref_name }}
|
||||||
|
body_file: CHANGELOG.md
|
||||||
- name: Run semantic-release
|
|
||||||
run: npx semantic-release
|
|
||||||
|
|
||||||
- name: Create Gitea release
|
|
||||||
run: .gitea/workflows/create-gitea-release.sh
|
|
||||||
env:
|
|
||||||
GITEA_TOKEN: ${{ secrets.GIT_TOKEN }}
|
|
||||||
|
8
README.md
Normal file
8
README.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Demo Project
|
||||||
|
|
||||||
|
## Test
|
||||||
|
Das ist ein Test
|
||||||
|
Test 01
|
||||||
|
|
||||||
|
test 03
|
||||||
|
|
Reference in New Issue
Block a user