1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-22 04:08:49 +02:00

1372 Commits

Author SHA1 Message Date
Hidde Beydals
9f6a810fbc
Support make_latest for GitHub release (#4161)
This commit adds a `make_latest` boolean to the release configuration,
to allow signaling to GitHub if the release should be marked as latest.

Albeit being a boolean, the internal Go type is a string to allow
to distinguish an empty string (default behavior: `true`) from an
explicit `false`.

For more information around the GitHub API field, see

https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#create-a-release

I did not include the `legacy` option, to not adopt something which
appears to be scheduled for removal in the future.

In addition, I opted for `make_latest` over `latest` because the
option is only available for GitHub. Which keeps the latter key
reserved for e.g. future use of a config option which is used across
Git providers.

Fixes #4159

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-07-13 22:42:20 -03:00
actions-user
fdee23cae3 chore: docs auto-update 2023-07-13 17:23:36 +00:00
Nick Santos
3e03fea974
docs: fix yaml formatting on scoop deprecations (#4170)
docs: fix yaml formatting on scoop deprecations

right now, the formatting at 
https://goreleaser.com/deprecations#scoop
is slightly broken when you click 'after'
2023-07-08 11:32:51 -03:00
actions-user
3680b69396 chore: docs releases json auto-update 2023-07-07 18:05:39 +00:00
actions-user
8bd5fed246 chore: docs releases json auto-update 2023-07-07 17:33:02 +00:00
Carlos Alexandro Becker
0c5f6936bd
docs: fix spacing 2023-07-06 16:54:22 +00:00
Carlos Alexandro Becker
b786c0283a
docs: fix templated contents 2023-07-06 16:51:23 +00:00
actions-user
b9b3865108 chore: docs auto-update 2023-07-06 02:35:23 +00:00
Carlos Alexandro Becker
a324009978
fix(winget): add missing fields, more templates (#4164)
This adds missing fields:

- LicenseURL
- CopyrightURL
- Tags

As well as make several more fields templateable.


cc/ @twpayne

Co-authored-by: Tom Payne <tom.payne@flarm.com>
2023-07-05 23:33:18 -03:00
Carlos Alexandro Becker
5f7be841d8
fix(nix): description, path and homepage should allow templates (#4156)
- nix.description, nix.path, and nix.homepage should allow templates
- nix.path was defaulting to wrong value, fixed

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-29 14:15:53 -03:00
actions-user
b2ae5e2ccc chore: docs releases json auto-update 2023-06-29 13:18:18 +00:00
actions-user
47889f0d63 chore: docs releases json auto-update 2023-06-29 03:20:38 +00:00
actions-user
f2202b937a chore: docs releases json auto-update 2023-06-29 02:10:46 +00:00
Carlos Alexandro Becker
c9eff90a62
docs: clarify prebuilt.path and binary
closes #4143
2023-06-26 18:12:35 +00:00
Carlos Alexandro Becker
7d485d6399
fix(winget): default commit message
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-26 17:09:18 +00:00
Carlos Alexandro Becker
72119e4d83
chore: schema updates 2023-06-25 05:34:14 +00:00
actions-user
f4d28b0596 chore: docs auto-update 2023-06-25 05:18:36 +00:00
Carlos Alexandro Becker
2eaefa94b1
fix(winget): release notes should be optional
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-25 05:15:17 +00:00
actions-user
58ede9badd chore: docs auto-update 2023-06-22 12:10:28 +00:00
Carlos Alexandro Becker
f33a534825
fix: umask nfpm field (#4136)
nfpm was updated, but we never allowed to configure the umask field in
goreleaser.

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-22 09:08:31 -03:00
Carlos Alexandro Becker
a130fe9cb2
docs: smallstep sponsorship
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-21 17:48:38 -03:00
Ville Skyttä
629df041d9
fix: do runner cleanups also on SIGINT and SIGTERM (#4133)
Behavior of the `EXIT` condition is not consistent between shells with
regards to abnormal exits and signals. This cleanup should occur always.

https://austingroupbugs.net/view.php?id=621
2023-06-21 17:08:08 -03:00
Carlos Alexandro Becker
7c658e57dc
docs: update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-20 12:43:18 +00:00
Carlos Alexandro Becker
94981fb8c0
chore: schema udpate
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-16 16:55:12 +00:00
Carlos Alexandro Becker
7d7e02b739
chore: update schema
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-16 16:48:59 +00:00
Carlos Alexandro Becker
3e66f8418e
chore: update schema
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-16 16:43:36 +00:00
actions-user
4d115cbf81 chore: docs auto-update 2023-06-16 16:33:12 +00:00
Carlos Alexandro Becker
e5c9338efd
feat: changelog.include (#4122)
closes https://github.com/goreleaser/goreleaser/issues/4111
refs https://github.com/orgs/goreleaser/discussions/4110
recreated #4115

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-16 13:31:23 -03:00
Ville Skyttä
3eecfddfc5
fix: runner tarball extract path (#4114)
Sigh, yet another regression from
4b7827829298c2f4a23dfcdc79bd4fcb685ac1bf. I actually _did_ test already
with 10a627c1967a09810473c182d6e1c1dcb8748f33, but for some reason
failed to notice the error. Tested better now :/
2023-06-15 16:34:45 -03:00
Ville Skyttä
10a627c196
fix: runner tarball download URL (#4113) 2023-06-15 14:57:43 -03:00
Ville Skyttä
4b78278292
docs: runner script fixes (#4112)
Primary motivation here is to fix the runner script on Linux arm64; see
the first commit. The other two contain some while-at-it cleanups.
2023-06-15 14:34:09 -03:00
Ville Skyttä
265148c661
Merge pull request from GHSA-2fvp-53hw-f9fc
Also takes care of removing the temporary directory when done.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-15 11:45:14 -03:00
Carlos Alexandro Becker
0e83d32610
chore: schema update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-15 03:09:13 +00:00
actions-user
dce5649319 chore: docs auto-update 2023-06-15 03:02:19 +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
f070847a87
docs: add more info about opening prs (#4106)
add another include with information about PRs, to be included
everywhere `repository.md` is included, too.

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-14 23:34:41 -03:00
Carlos Alexandro Becker
2519581221
chore: update schema
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-14 18:04:51 +00:00
Carlos Alexandro Becker
41536fd13d
docs: explain artifactory mode binary better
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-14 18:04:46 +00:00
actions-user
35b22106d5 chore: docs auto-update 2023-06-14 04:03:59 +00:00
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
actions-user
0805ec0553 chore: docs auto-update 2023-06-14 03:15:12 +00:00
Carlos Alexandro Becker
62b065dad0
feat: deprecate brews.tap, krews.index & scoops.bucket (#4099)
It should make goreleaser easier to use, as a `repository` is now always
called `repository`.

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-14 00:13:21 -03:00
Carlos Alexandro Becker
56dfb8b5b0
docs: include markdown plugin (#4098)
I was really tired of copying and pasting that over and over again and
keeping it all in sync...

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-13 23:25:18 -03:00
Carlos Alexandro Becker
f33968f187
docs: mark flags as pro only
closes #4077

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-13 14:55:08 +00:00
Carlos Alexandro Becker
4bda54d8ea
docs: sync
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-13 14:55:08 +00:00
actions-user
eb5c3f09ae chore: docs auto-update 2023-06-13 12:56:22 +00:00
Carlos Alexandro Becker
e598d67ced
docs: fix broken link
closes #4092
2023-06-13 12:38:31 +00:00
Carlos Alexandro Becker
9b960b2668
docs: update snapcraft docs
refs #3930

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-12 12:10:53 +00:00
actions-user
6cb97c1429 chore: docs auto-update 2023-06-12 12:05:17 +00:00
Carlos Alexandro Becker
5c6c61ae8b
chore: schema update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-07 02:51:44 +00:00