0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-09 16:00:40 +00:00

fix docs pipeline

This commit is contained in:
Robert Kaussow 2023-10-13 22:40:11 +02:00
parent 0d2a36112b
commit 4d8619e6eb
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
6 changed files with 25 additions and 47 deletions

View File

@ -17,17 +17,11 @@ steps:
commands:
- $(find dist/ -executable -type f -iname ${CI_REPO_NAME}-linux-amd64) --help
# changelog-generate:
# image: quay.io/thegeeklab/git-chglog
# commands:
# - git fetch -tq
# - git-chglog --no-color --no-emoji -o CHANGELOG.md ${CI_COMMIT_TAG:---next-tag unreleased unreleased}
# changelog-format:
# image: quay.io/thegeeklab/alpine-tools
# commands:
# - prettier CHANGELOG.md
# - prettier -w CHANGELOG.md
changelog-generate:
image: quay.io/thegeeklab/git-sv
commands:
- git fetch --depth=2147483647
- git sv release-notes
publish-github:
image: docker.io/plugins/github-release

View File

@ -19,23 +19,6 @@ steps:
FORCE_COLOR: "true"
NPM_CONFIG_LOGLEVEL: "error"
publish:
image: quay.io/thegeeklab/git-sv
settings:
action:
- pages
author_email: bot@thegeeklab.de
author_name: thegeeklab-bot
branch: docs
message: "[skip ci] auto-update documentation"
netrc_password:
from_secret: github_token
pages_directory: _docs/
when:
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
pushrm-dockerhub:
image: docker.io/chko/docker-pushrm:1
secrets:

View File

@ -1,6 +1,6 @@
# Changelog
{{- range .}}
{{- range . }}
{{template "releasenotes-md.tpl" .}}
{{ template "releasenotes-md.tpl" . }}
---
{{- end}}
{{- end -}}

View File

@ -1,8 +1,8 @@
## {{if .Release}}{{.Release}}{{end}}{{if and (not .Date.IsZero) .Release}} ({{end}}{{timefmt .Date "2006-01-02"}}{{if and (not .Date.IsZero) .Release}}){{end}}
## {{ if .Release }}{{ .Release }}{{ end }}{{ if and (not .Date.IsZero) .Release }} ({{ end }}{{ timefmt .Date "2006-01-02" }}{{ if and (not .Date.IsZero) .Release }}){{ end }}
{{- range $section := .Sections }}
{{- if (eq $section.SectionType "commits") }}
{{- template "rn-md-section-commits.tpl" $section }}
{{- else if (eq $section.SectionType "breaking-changes")}}
{{- else if (eq $section.SectionType "breaking-changes") }}
{{- template "rn-md-section-breaking-changes.tpl" $section }}
{{- end}}
{{- end}}
{{- end }}
{{- end -}}

View File

@ -1,7 +1,7 @@
{{- if ne .Name ""}}
{{- if ne .Name "" }}
### {{.Name}}
{{range $k,$v := .Messages}}
- {{$v}}
{{- end}}
{{- end}}
### {{ .Name }}
{{ range $k,$v := .Messages }}
- {{ $v }}
{{- end }}
{{- end -}}

View File

@ -1,7 +1,8 @@
{{- if .}}{{- if ne .SectionName ""}}
{{- if . }}{{- if ne .SectionName "" }}
### {{.SectionName}}
{{range $k,$v := .Items}}
- {{if $v.Message.Scope}}**{{$v.Message.Scope}}:** {{end}}{{$v.Message.Description}} ({{$v.Hash}}){{if $v.Message.Metadata.issue}} ({{$v.Message.Metadata.issue}}){{end}}
{{- end}}
{{- end}}{{- end}}
### {{ .SectionName }}
{{ range $k,$v := .Items }}
- {{ if $v.Message.Scope }}**{{ $v.Message.Scope }}:** {{ end }}{{ $v.Message.Description }} ({{ $v.Hash }}){{ if $v.Message.Metadata.issue }} ({{ $v.Message.Metadata.issue }}){{ end }}
{{- end }}
{{- end }}
{{- end -}}