0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-22 08:20:39 +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: commands:
- $(find dist/ -executable -type f -iname ${CI_REPO_NAME}-linux-amd64) --help - $(find dist/ -executable -type f -iname ${CI_REPO_NAME}-linux-amd64) --help
# changelog-generate: changelog-generate:
# image: quay.io/thegeeklab/git-chglog image: quay.io/thegeeklab/git-sv
# commands: commands:
# - git fetch -tq - git fetch --depth=2147483647
# - git-chglog --no-color --no-emoji -o CHANGELOG.md ${CI_COMMIT_TAG:---next-tag unreleased unreleased} - git sv release-notes
# changelog-format:
# image: quay.io/thegeeklab/alpine-tools
# commands:
# - prettier CHANGELOG.md
# - prettier -w CHANGELOG.md
publish-github: publish-github:
image: docker.io/plugins/github-release image: docker.io/plugins/github-release

View File

@ -19,23 +19,6 @@ steps:
FORCE_COLOR: "true" FORCE_COLOR: "true"
NPM_CONFIG_LOGLEVEL: "error" 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: pushrm-dockerhub:
image: docker.io/chko/docker-pushrm:1 image: docker.io/chko/docker-pushrm:1
secrets: secrets:

View File

@ -1,6 +1,6 @@
# Changelog # 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 }} {{- range $section := .Sections }}
{{- if (eq $section.SectionType "commits") }} {{- if (eq $section.SectionType "commits") }}
{{- template "rn-md-section-commits.tpl" $section }} {{- 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 }} {{- 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}} ### {{ .Name }}
{{range $k,$v := .Messages}} {{ range $k,$v := .Messages }}
- {{$v}} - {{ $v }}
{{- end}} {{- end }}
{{- end}} {{- end -}}

View File

@ -1,7 +1,8 @@
{{- if .}}{{- if ne .SectionName ""}} {{- if . }}{{- if ne .SectionName "" }}
### {{.SectionName}} ### {{ .SectionName }}
{{range $k,$v := .Items}} {{ 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}} - {{ 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}}{{- end}} {{- end }}
{{- end -}}