1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00
Commit Graph

71 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
896366f3dc feat: version in the yaml file
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-10-31 15:10:16 -03:00
Carlos Alexandro Becker
695a56feaa
chore: typo 2023-09-18 12:59:02 +00:00
Carlos Alexandro Becker
43bb54918a
ci: ignore nightly only when not nightly 2023-09-17 17:03:13 +00:00
Carlos Alexandro Becker
ecdbf5877c
feat: git.ignore_tags (#4255)
Allows to ignore tags that match the given regex expressions.
2023-08-27 15:57:03 -03:00
Carlos Alexandro Becker
0f018f3f58
build: fix release name when nightly 2023-08-09 13:12:18 +00:00
Carlos Alexandro Becker
c06ba3a94f
feat: publishers.disable (#4239)
allows to disable a specific custom publisher based on a template, akin
to other pipes.

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-08-08 22:43:09 -03:00
Carlos Alexandro Becker
9e5d6458b3
build: improve archive name_template 2023-08-03 12:33:02 +00:00
Carlos Alexandro Becker
d0a86edd90
feat(snapcraft): allow to disable (#4228)
allows to disable a snapcraft configuration based on a template, e.g. if
snapshot, nightly, etc
2023-08-03 09:17:26 -03:00
Carlos Alexandro Becker
204d14ae64
build: release nightly every Thursday (#4211)
closes #3501
2023-08-02 23:17:03 -03:00
Carlos Alexandro Becker
d7921d4638 feat(brew): extra_install
Allows to add manpages and shell completion installs without overriding
the default bin.install.
2023-07-31 09:40:35 -03:00
Carlos Alexandro Becker
30ea8a7d96
build: update nix config
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-07-30 02:34:15 +00:00
Carlos Alexandro Becker
609e7c5657
feat: metadata mod_timestamp (#4188)
closes #4167

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-07-15 16:53:52 -03:00
Carlos Alexandro Becker
682220937c
build: winget branch
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-29 13:27:38 +00:00
Carlos Alexandro Becker
a68000b5ad
build(nix): fix goreleaser config path (#4151)
default is `goreleaser.nix`

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-29 00:46:08 -03:00
Carlos Alexandro Becker
7355ccd524
build: fix config 2023-06-15 03:19:58 +00:00
Carlos Alexandro Becker
6afdb49c12
feat: winget support (#4081)
this will add support to winget into goreleaser.

Basically, the plan is:

- we generate the 3 needed yaml files 
- we commit them to a repo

and that's it.

Initially, will probably have limited options support, and will only
have the default locale.

###### TODO

- [x] docs
- [x] review by someone who knows how this works?
- [x] test install somewhere
- [x] more tests maybe?
- [x] PR templates via API?
https://github.com/goreleaser/goreleaser/pull/4105
- [x] real project test 
- [x] setup goreleaser to pr to winget as well
- [x] document sync fork stuff
https://github.com/goreleaser/goreleaser/pull/4106

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-14 23:59:55 -03:00
Carlos Alexandro Becker
b56dcbf4c1
build: do not use deprecated options
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-14 04:01:11 +00:00
Carlos Alexandro Becker
210d029991
build: rm deprecated option
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-12 12:11:07 +00:00
Carlos Alexandro Becker
68b38c0229
test: fix
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-07 02:57:51 +00:00
Carlos Alexandro Becker
99afc8d62e
feat: nix support (#4012)
very, very, very WIP implementation of nixpkgs for GoReleaser.

**Decisions made for this first version:**
- only linux and darwin, arm64, 386 and amd64
- only support pkgs from goreleaser-generated archives
- no support to push into default nixpkgs repository
- no support to automatically add the _maybe_ new pkg to the root
`default.nix`
- the generated nixpkg will be rather verbose, which shouldn't be too
much of an issue as it is autogenerated anyway

**TODOs**:
- [x] macos universal binary support
- [x] custom pkg path (e.g. pkgs/misc/foo/bar/default.nix)
- [x] handle archives with a folder in them
- [x] add more options: postInstall, ??

**Will be handled in future versions**:
- [ ] archives.format=binary support
- [ ] compile from source
- [ ] PR-ing into nixpkgs
- [ ] armv6l-linux & armv7l-linux support

closes #3537

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-25 23:07:10 -03:00
Carlos Alexandro Becker
46072c6047
docs: add banner asking for support to the website, release notes, etc
Sounds a bit like begging, but I was told it actually works.
Let's see...
2023-05-19 19:33:37 +00:00
Carlos Alexandro Becker
c6c6cdf0de
Revert "build: temp disable push to aur"
This reverts commit b037471278.
2023-05-06 03:18:48 +00:00
Carlos Alexandro Becker
aaa9da33d5
fix: disable upx for now 2023-05-05 04:26:12 +00:00
Carlos Alexandro Becker
b037471278
build: temp disable push to aur 2023-05-05 03:28:11 +00:00
Carlos Alexandro Becker
45b80dfa26
fix: pass tree state as ldflag (#3968)
needs #3967

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-02 01:04:48 -03:00
Carlos Alexandro Becker
43ae761179
feat: native upx support (#3965)
this adds a new root-level `upx` config, so users can pack their
binaries with upx :)

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-01 21:22:05 -03:00
Carlos Alexandro Becker
eb823dee14
feat: allow multiple scoops (#3963)
This brings the scoops feature a bit more closer to similar pipes, like
brew and krew.

- It now supports multiple scoops
- It improves some validations to prevent wrong manifests
- It uses extra.binaries instead of extra.builds, as brew does too
	- extra.builds is now unused, will be removed in a subsequent PR
- More tests were added as well

closes #3941

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-04-30 21:29:36 -03:00
Carlos Alexandro Becker
f3e1170a89
feat: log generated artifact sizes (#3954)
This adds a log with the size of the generated binaries/packages/etc in
the end of the build process, and also adds it to the artifacts.json

closes #3949

TODO:

- [x] tests
- [x] docs
- [ ] ??

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-04-23 20:27:16 -03:00
Carlos Alexandro Becker
9dcc63c60e
build: create scoop manifests inside a bucket folder
refs https://github.com/goreleaser/goreleaser/issues/3899

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-04-03 09:05:31 -03:00
Carlos A Becker
33e46b6e84
build: improve changelog config
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-03-10 10:27:51 -03:00
Carlos Alexandro Becker
9e21511300
feat: cosign update (#3821)
cosign v2 update!

- need to use `--yes` to auto-approve prompts

cc/ @cpanato anything else I'm missing?

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-03-02 15:11:43 -03:00
Carlos Alexandro Becker
fee166d02f
build: do not release for windows arm7 (#3735)
no one uses it anyway

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-09 08:57:38 -03:00
Carlos A Becker
15bc65618b
build: add another category to our changelog
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-02 21:07:38 -03:00
Carlos A Becker
2bfbab9885
build: disable goreleaser twitter announce
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-02 21:06:46 -03:00
Carlos A Becker
e27e3a6478
build: release for ppc64
closes #3703

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-25 14:23:44 -03:00
Carlos Alexandro Becker
a209757ad2
feat: better archives relative paths (#3656)
with this patch, a config like:

```yaml
archives:
  - format: tar.gz
    # this name template makes the OS and Arch compatible with the results of uname.
    name_template: >-
      {{ .ProjectName }}_
      {{- title .Os }}_
      {{- if eq .Arch "amd64" }}x86_64
      {{- else if eq .Arch "386" }}i386
      {{- else }}{{ .Arch }}{{ end }}
      {{- if .Arm }}v{{ .Arm }}{{ end }}
    rlcp: true
    files:
      - src: "build/**/*"
        dst: .

nfpms:
  - package_name: foo
    contents:
      - src: "build/**/*"
        dst: usr/share/foo
    formats:
      - apk

```

will eval this:

<img width="1384" alt="CleanShot 2022-12-21 at 22 21 00@2x"
src="https://user-images.githubusercontent.com/245435/209034244-7c31b5f7-cfcd-4825-bb2f-7dd463c5286a.png">

as much as I would like to make this the default, it would be a breaking
change, so we really can't do it.

If `dst` is empty, it'll have the same behavior as before (no rlcp), and
if `strip_parent` is set, it will also still have the same behavior.
Finally, if the format is binary, `rlcp` is ignored too (as it doesn't
make sense).

So, this only changes if:
- your format is not binary; and
- you have files with `src` and `dst` set

Then, goreleaser will warn you to set `rlcp: true`.

## todo

- [x] docs
- [x] more tests probably
- [x] any ideas for a better name for the new config option?

fixes #3655

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-27 17:42:55 -03:00
Carlos Alexandro Becker
937067697b
feat: set file info for binaries inside archives (#3618)
closes #3582

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-14 12:16:03 -03:00
Carlos A Becker
ddf7660b6d
fix: extra quotes on goreleaser archives 2022-12-10 12:46:23 -03:00
Carlos A Becker
522a60087a
chore: use digest when signing
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-28 22:42:02 -03:00
Carlos Alexandro Becker
e54656438b
feat: deprecate replacements (#3589)
The replacements thing was always a bit weird, especially on archives.

We can solve that with templates, so, removing I'm deprecating it.

Also did the same on other places that had it the same feature.

Closes #3588

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-25 15:26:14 -03:00
Carlos A Becker
8cc24a55a2
chore: fix mastodon announce url 2022-11-20 15:31:06 -03:00
Carlos Alexandro Becker
59138b43ce
chore: announce goreleaser releases to mastodon (#3569)
actually announce goreleaser releases to mastodon as well :)

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-17 21:42:43 -03:00
Steven Hartland
0ea4f1d5b7
fix(changelog): group regexps (#3527)
Fix the regular expressions used in changelog group processing to valid
golang (RE2) regexps. These previously used PCRE character class `\w`
which is not supported in RE2 which is what golang regexp uses.

Also document that format matches not just title as some may thing but
the format `<abbrev-commit> <title-commit>`.
2022-11-07 09:28:52 -03:00
Alex Logsdon
722463d129
docs: fix typo in .goreleaser.yaml (#3531)
URL in `.goreleaser.yaml` pointed to https://goreleser.com which doesn't
exit, presumably it was intended to point to https://goreleaser.com
2022-11-06 22:19:20 -03:00
Arsen6331
ad359a4712
feat: implement nfpm archlinux packages (#3470)
<!--

Hi, thanks for contributing!

Please make sure you read our CONTRIBUTING guide.

Also, add tests and the respective documentation changes as well.

-->


<!-- If applied, this commit will... -->

This PR implements the Archlinux packages that were added in nfpm
v2.20.0, as well as tests and documentation for them.

<!-- Why is this change being made? -->

<!-- # Provide links to any relevant tickets, URLs or other resources
-->

goreleaser/nfpm#133
goreleaser/nfpm#543
Fixes #3469

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2022-11-02 15:30:06 -03:00
Carlos A Becker
1cf40901fc
chore: improve releaser footer 2022-10-23 15:19:31 -03:00
Carlos A Becker
86e292bbee
chore: fix changelog deps group
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-28 22:08:25 -03:00
Carlos Alexandro Becker
6606eec326
fix: yaml-lang-server modelines in init config (#3376)
- docs on how to specify the schema to the lang server
- add it automatically along with vim modelines to the init config
- added it to our config as well

this should prevent some "out of date" schema issues, as well as mixing
tabs with spaces and whatnot when an editorconfig plugin is not
installed.
2022-09-15 09:41:26 -03:00
Carlos Alexandro Becker
89978a2a5c
fix: fish completions path on nfpm (#3375)
https://fishshell.com/docs/current/completions.html#where-to-put-completions

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-15 01:29:47 -03:00
Carlos Alexandro Becker
3f60327964
feat: nfpm changelog support (#3309)
closes #3259

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-16 02:05:46 -03:00