Skip to content

Commit

Permalink
fix goreleaser deprecation notice
Browse files Browse the repository at this point in the history
on release add a link to the documentation version directly instead of
the main one which can be different than the released one

Fixes #1314

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel committed Jun 9, 2023
1 parent a0ff454 commit 4990013
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ builds:
- -s
- -X github.com/openshift-pipelines/pipelines-as-code/pkg/params/version.Version={{.Version}}
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: MacOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{ .Binary }}_
{{ .Version }}_
{{ .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "darwin" }}MacOS
{{- else if eq .Arch "linux" }}Linux
{{- else if eq .Arch "windows" }}Windows
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
Expand All @@ -44,9 +47,10 @@ release:
header: |
# Pipelines as Code version {{.Tag}}
OpenShift Pipelines as Code patch version {{.Tag }} has been released 🥳
OpenShift Pipelines as Code {{.Tag }} has been released 🥳
TODO: XXXXX add high level changelog before setting this as released XXXXX
TODO: XXXXX add high level changelog before setting this as released XXXXX,
describe the large features with some nice screenshot/demo if possible with doc links and pr links, if bugfixes just mention the notable bugfixes, see older releases for some example
## Installation
Expand All @@ -62,10 +66,9 @@ release:
```
### Documentation
documentation is available here :
https://pipelinesascode.com
The documentation for this release is available here :
https://release-{{ replace .Tag "." "-" }}.pipelines-as-code.pages.dev
brews:
- name: tektoncd-pac
Expand All @@ -87,7 +90,15 @@ brews:
(zsh_completion/"_tkn-pac").write output
prefix.install_metafiles
nfpms:
- file_name_template: "tkn-pac-{{.Version}}_{{.Os}}-{{.Arch}}"
- file_name_template: >-
tkn-pac-
{{.Version}}_{{.Os}}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "darwin" }}MacOS
{{- else if eq .Arch "linux" }}Linux
{{- else if eq .Arch "windows" }}Windows
{{- else }}{{ .Arch }}{{ end }}
homepage: https://pipelinesascode.com
description: A command line interface to OpenShift Pipelines as Code
maintainer: OpenShift Pipelines Developers <[email protected]>
Expand All @@ -97,15 +108,6 @@ nfpms:
- deb
- rpm
bindir: /usr/bin
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows

changelog:
sort: asc
use: github
Expand Down

0 comments on commit 4990013

Please sign in to comment.