Carlos Alexandro Becker
51592e1424
feat: envOrDefault template function ( #4097 )
...
You can achieve the same with `{{ with (index .Env "NAME") }}etc`, but
this looks cleaner.
refs #4096
2023-06-14 00:16:01 -03:00
Carlos Alexandro Becker
66cee9493c
feat: remove deprecated replacements ( #4075 )
...
since this will be a late, big release, let's remove the deprecated
stuff that expired
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-06 11:46:02 -03:00
Carlos Alexandro Becker
3cfd5fe020
docs: update templates.md
2023-06-06 01:11:41 -03:00
Ville Skyttä
ef690d07ef
style: spelling and grammar fixes ( #4069 )
...
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-05 13:08:57 -03:00
Carlos Alexandro Becker
09411ea60a
feat: Checksums as a template field ( #4064 )
...
this would allow to add the checksums to the body of the release
contents, for example.
refs https://github.com/orgs/goreleaser/discussions/4063
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-05 13:05:28 -03:00
Carlos Alexandro Becker
e0dabc1cb9
feat(telegram): ability to choose msg format, mdv2escape ( #4036 )
...
this allows to choose parse mode between `HTML` and `Markdownv2`, and
adds a new template function, `mdv2escape`, to escape the characters
according to telegram docs:
https://core.telegram.org/bots/api#formatting-options
closes #4021
2023-05-27 00:17:02 -03:00
Carlos Alexandro Becker
4330b522ea
feat: IsGitDirty template variable ( #3967 )
...
will only ever be true on snapshots or when ran with `--skip-validate`.
This should be useful as a ldflag, for example.
2023-05-02 01:04:18 -03:00
Carlos Alexandro Becker
44f8fae305
feat: IsDraft template variable ( #3888 )
...
allows to use `{{ .IsDraft }}` in templates.
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-03-24 00:01:48 -03:00
Carlos Alexandro Becker
590eff32d2
feat: .Now template variable ( #3853 )
...
This will allow more customized templates using dates!
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-03-19 22:21:43 -03:00
Carlos Alexandro Becker
a40eb15618
feat: add base template function ( #3834 )
...
refs #3833
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-03-04 12:16:37 -03:00
Carlos Alexandro Becker
d5151a6eb0
feat: ConventionalExtension on nFPM ( #3822 )
...
closes #3799
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-03-02 14:35:55 -03:00
Carlos A Becker
a5f2302fd9
chore: update docs/schema for pro
...
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-26 17:44:02 -03:00
Carlos Alexandro Becker
f3f1c08caf
feat: title template function ( #3590 )
...
added new `title` template function.
extracted from #3589
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-24 15:21:42 -03:00
Carlos Alexandro Becker
c1965923b0
docs: improve wording/formatting in several places ( #3384 )
...
this just improves docs wording and formatting in several places.
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-17 00:13:09 -03:00
Carlos Alexandro Becker
61f586e625
docs: version recent changes ( #3367 )
...
versioned all new options since v1.2 (late 2021).
Should be enough to fix #3317 for now.
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-11 16:54:51 -03:00
Carlos A Becker
797a1ccc5f
feat: release with target_commitish in another repo
...
We should not imply the target_commitish, as some users might want to
have the code in one repo and the releases in another (e.g. private
code, public releases), so the commit might not be there.
We should instead allow the user to set the `target_commitish` (or not),
and pass it down to the github api.
refs 95bba02211a2b88426826ff36a3fd1b424a1d5a7
refs #3044
refs #3330
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-22 21:31:28 -03:00
andig
42eaf083fe
feat: add split tmpl function ( #3293 )
2022-08-07 11:39:04 -03:00
Carlos A Becker
a31b4aa0ae
feat: ArtifactExt as a template field
2022-08-01 16:04:20 -03:00
Carlos A Becker
e3a50e7b9d
docs: note goamd64 and nfpm conventional file names
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-13 23:44:17 -03:00
Carlos Alexandro Becker
b0583c700b
feat: support GOAMD64 ( #3016 )
...
* feat: support GOAMD64
* fix: test
* wip
* wip: docker et al
* fix: archive format name
* test: added new test
* feat: nfpm amd4, mips et al
* chore: rm unused file
* fix: brew for multiple goamd64
* fix: krew
* feat: aur
* feat: krew
* docs: brew
* feat: gofis
* feat: scoop
* fix: docker filters
* fix: snapcraft
* fix: improve diff a bit
* fix: snapcraft name template
2022-04-11 22:43:22 -03:00
Carlos Alexandro Becker
d295d0bdff
feat: annotated tag body ( #2923 )
...
* feat: annotated tag body
this adds another template variable, `TagBody`, with the body of the annotated tag/commit message only.
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
* refactor: tag contents
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-24 22:57:51 -03:00
Carlos Alexandro Becker
f0af44ccbe
feat: add filter and reverseFilter template functions ( #2924 )
...
* feat: add grep and grep -v template functions
this adds `grep` and `reverseGrep` template functions, which should help dealing with text.
refs #2920
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
* refactor: rename funcs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-24 22:57:43 -03:00
Carlos Alexandro Becker
9d481d4630
feat: expose runtime goos and goarch on templates and metadata ( #2859 )
...
* feat: expose runtime goos and goarch on templates and metadata
* test: fix duplicated map literal in some os/arch
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-31 22:36:22 -03:00
Carlos A Becker
592e763f6b
docs: update docs and schema
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-20 16:22:54 -03:00
Engin Diri
a19ee5fc42
docs: rename in the docs goreleaser.yml to goreleaser.yaml ( #2784 )
2021-12-22 21:52:01 -03:00
Carlos A Becker
1f0685f248
docs(nfpm): note about conventional file names and armv6/v7
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-21 13:50:21 -03:00
Carlos Alexandro Becker
6ea7fb792a
feat: annotated tag contents ( #2744 )
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-06 16:52:26 -03:00
Carlos Alexandro Becker
9b9eef04a2
feat: get annotated tag message ( #2730 )
...
refs #2726
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-05 23:23:15 -03:00
Carlos A Becker
af4a8642bd
docs: update tmpl
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-28 20:41:04 -03:00
Carlos A Becker
53bd977810
docs: minor improvements
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-25 00:20:40 -03:00
Erik Kristensen
274ffae03c
feat: add git summary support (aka git describe --dirty --tags --always) ( #2700 )
...
* feat: add git summary support (aka git describe --dirty --tags --always)
* feat: update documentation for new summary template variable
* test: add tests for new summary feature
2021-11-25 03:01:56 +00:00
Carlos Alexandro Becker
cd261a527a
feat: allow to use .PreviousTag on templates ( #2683 )
...
* feat: expose .PreviousTag
* fix: previous tag will never be a commit
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
* fix: tests
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
* docs: tag
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-24 09:12:24 -03:00
Carlos Alexandro Becker
df0216d585
feat: nfpm conventional file name ( #2663 )
2021-11-12 12:07:59 +00:00
Carlos Alexandro Becker
a2ba9cb8fa
refactor: release url ( #2637 )
...
* refactor: release url
* chore: fmt
* chore: less diffs
* docs: lowercase everything
* chore: improve fmt
* chore: revert
2021-11-06 16:54:01 -03:00
Carlos A Becker
a7b929a403
docs: improve templates.md
2021-11-06 16:44:59 -03:00
Furkan Türkal
8e89e3fde3
fix: remove .git suffix by default from announcers ( #2623 )
...
* fix: remove .git suffix by default from announcers
Fixes #2622
Signed-off-by: Furkan <furkan.turkal@trendyol.com>
Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>
Co-authored-by: Erkan <erkan.zileli@trendyol.com>
* feat(doc): update defaults
Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>
Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>
Co-authored-by: Furkan <furkan.turkal@trendyol.com>
Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>
Co-authored-by: Erkan <erkan.zileli@trendyol.com>
2021-11-02 20:03:23 -03:00
Carlos A Becker
2be6f399bf
docs: improve search
...
fixes #2616
2021-10-30 09:50:23 -03:00
Patrick Hahn
e64b2cd8da
feat: Allow release notes to be used in template strings ( #2566 )
...
When using the announce feature, you might want to inform your users about the features and changes that this release brings. This change allows you to use {{ .ReleaseNotes }} in any template string, after the changelog pipeline step has been executed.
2021-10-07 14:19:19 -03:00
Carlos Alexandro Becker
3d62f95fd5
docs: nightly pro feature
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-24 20:18:52 -03:00
Carlos Alexandro Becker
55dd91e404
docs: improve several documentation pages
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-22 23:30:16 -03:00
Christian Mäder
757701f65c
feat: snapshot.name_template
should use tag instead of version ( #2417 )
...
* fix: Change the init-template for snapshot.name_template
* fix: Change the default-template for snapshot.name_template
BREAKIND CHANGE: The default value of `snapshot.name_template` is changed.
2021-08-21 10:59:15 -03:00
Carlos Alexandro Becker
b176b1ff80
feat: inc parts of semver, change snapshot default name ( #2358 )
2021-07-24 10:13:05 -03:00
Carlos A Becker
40b38fbdc9
docs: sync docs
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-21 02:20:34 +00:00
Carlos A Becker
68f23cfc16
docs: sync with pro
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-30 18:00:35 +00:00
Carlos Alexandro Becker
690b49b9fc
docs: goreleaser-pro ( #2260 )
2021-05-26 19:08:46 -03:00
Carlos Alexandro Becker
7378edc708
feat: allow to use ModulePath on templates ( #2128 )
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-22 08:55:01 -03:00
Kumbirai Tanekha
28c7a1236b
docs: fix typo in templates.md ( #2123 )
2021-03-19 08:50:12 -03:00
Kumbirai Tanekha
e0c3abae2e
feat: Add trimprefix function to template package ( #2116 )
...
This allows templates to trim prefixes. Particularly useful for removing the v prefix from versions
2021-03-17 14:19:32 -03:00
Carlos Alexandro Becker
c9ffa78c25
feat: package name on nfpm file name template ( #2097 )
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-03-09 10:57:43 +00:00
Dan Rollo
4896e65b93
docs: minor grammar tweak ( #2054 )
2021-02-11 18:31:46 -03:00