1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-07 13:31:37 +02:00

576 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
3e663003b1
feat(blob): allow to upload only extra_files (#4925)
Not happy with the option name tbh... happy to hear suggestions :) 

refs #4921
refs https://github.com/goreleaser/goreleaser/issues/4920

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-06-12 09:03:36 -03:00
Carlos Alexandro Becker
8244d52f08
docs: clean up nfpm docs 2024-06-11 10:00:38 -03:00
bradenhilton
ac40ce8a80
feat(chocolatey): allow template in copyright, provide ctx.ReleaseNotes (#4858)
<!--

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 allows `chocolateys.copyright` to be templated, and provides
`ctx.ReleaseNotes` as `.Changelog`.

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

Allowing templates for the copyright will enable, for example:

```yaml
chocolateys:
- ...
  copyright: Copyright (c) 1970-{{ .Now.Format "2006" }} Foo Bar
  ...
```

Without this change:

```xml
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
  <metadata>
    ...
    <copyright>Copyright (c) 1970-{{ .Now.Format &#34;2006&#34; }} Foo Bar</copyright>
    ...
  </metadata>
  ...
</package>
```

With this change:

```xml
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
  <metadata>
    ...
    <copyright>Copyright (c) 1970-2024 Foo Bar</copyright>
    ...
  </metadata>
  ...
</package>
```

---

Providing the release notes means they can be placed directly in the
package page instead of linking to them, for example:

```yaml
chocolateys:
- ...
  release_notes: '{{ .Changelog }}'
  ...
```

Without this change:

```console
❯ goreleaser release --skip=sign,announce,publish --clean
  • starting release...
  ...
  • chocolatey packages
    ⨯ release failed after 4s                  error=template: failed to apply "{{ .Changelog }}": template: failed to apply "{{ .Changelog }}": map has no entry for key "Changelog"
```

With this change:

```xml
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
  <metadata>
    ...
    <releaseNotes>## Changelog&#xA;### Other&#xA;* cfa5cbfa5 test&#xA;</releaseNotes>
    ...
  </metadata>
  ...
</package>
```

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

---

These are already supported for WinGet.

There is probably a better way of doing this, and I've probably also
missed something, so feedback is welcome!
2024-06-11 09:29:55 -03:00
Shun Sakai
65a3e06e92
feat(archive): support .tzst suffix (#4870)
See <https://lists.gnu.org/archive/html/info-gnu/2019-01/msg00001.html>:

> When '-a' option is in effect, zstd compression is selected if the
> destination archive name ends in '.zst' or '.tzst'.

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-06-11 09:25:17 -03:00
Carlos Alexandro Becker
39e62beadc
docs: fix links 2024-06-11 09:22:39 -03:00
Carlos Alexandro Becker
2d54bf0211
feat(notary): allow to sign without notarizing (#4919)
closes #4890

- [x] docs
- [ ] tests
2024-06-11 09:20:48 -03:00
Carlos Alexandro Becker
88a49c5c06
docs: improve docker documentation
closes #4913
2024-06-05 22:10:31 -03:00
Carlos Alexandro Becker
4d9198cafe
docs: update 2024-06-03 22:12:56 -03:00
Lio李歐
2023d4bcc6
docs: fix winget default path (#4875)
<!--

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... -->
Update docs for `winget` to show the default past contains the name as
well.

...

<!-- Why is this change being made? -->
Current doc (and sample value) don't contain the name and this doesn't
match the implementation.

...

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

a82491afe4/internal/pipe/winget/winget.go (L165)
...
2024-05-17 08:44:58 -03:00
Oleksandr Redko
c148106c56
docs: update old Go website links (#4855)
The PR updates the links in the docs, replacing the old `golang.org`
with the new `go.dev`.
2024-05-12 13:22:56 -03:00
Carlos Alexandro Becker
0481e63fb3
docs: remove mentions to --skip-something flags 2024-05-09 23:18:53 -03:00
Maxime VISONNEAU
3c0c7148fd
blob: permit skipping the configuration of the Content-Disposition header (#4832)
This change would allow users to disable the `Content-Disposition`
header that is set for blob storage operations. The application will
continue to set a default value for `Content-Disposition` of
`attachment; filename={{.Filename}}` if no value was provided by the
user. However, with this change, users can now specifically disable this
header by setting the value to "-" in the configuration.

We feel this would be a nice solution for this issue:
https://github.com/Homebrew/brew/issues/15604
2024-05-09 22:13:46 -03:00
Shun Sakai
5d98c69f0f
feat(checksum): supports BLAKE2 and SHA-3 (#4850)
If applied, these commits will allow users to use BLAKE2 (BLAKE2b-512
and BLAKE2s-256) and SHA-3 (SHA3-{224,256,384,512}) as checksum
algorithms.

This is because I think it would be useful if these algorithms could be
used as an alternative to SHA-1 and SHA-2. These algorithms are
standardized as [RFC
7693](https://datatracker.ietf.org/doc/html/rfc7693) (BLAKE2) and [FIPS
PUB
202](https://www.nist.gov/publications/sha-3-standard-permutation-based-hash-and-extendable-output-functions)
(SHA-3).

- <https://en.wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE2>
- <https://en.wikipedia.org/wiki/SHA-3>
2024-05-09 21:45:28 -03:00
Carlos Alexandro Becker
7b78e195e2
docs: notes on prefixed tags and monorepos 2024-05-08 15:37:59 -03:00
Carlos Alexandro Becker
e538341179
feat(archive): support tar.zst (#4825)
closes #4820
2024-05-03 10:29:55 -03:00
kvendingoldo
b05a62fddc
feat: migrate to new homebrew constuctions (on_arm, on_intel) (#4822)
<!--

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... -->

...

<!-- Why is this change being made? -->
Brew linter says that old constructions can't be used in case of
submitting to brew-core

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

...
2024-05-02 20:43:03 -03:00
Stepan Rabotkin
7982a33a06
fix: telegram default message (#4821)
Hi, there is another fix of default message. I tried this message, now
everything works
2024-05-02 20:37:15 -03:00
Carlos Alexandro Becker
bf31227b4e
fix(nfpm): termux platform (#4812)
closes #4810 
closes  #4809

---------

Co-authored-by: rsteube <rsteube@users.noreply.github.com>
2024-04-28 20:20:53 -03:00
Carlos Alexandro Becker
39bf6668bc
feat(changelog): custom commit format (#4802)
This allows to use templates for commit messages in the changelog when
using `github`, `gitea`, or `gitlab` as the changelog implementation.

closes #4800

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-24 09:08:20 -03:00
Carlos Alexandro Becker
12d236ded2
docs: update 2024-04-22 23:50:42 -03:00
Carlos Alexandro Becker
60f12deae0
docs: update changelog
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:40:11 -03:00
Bo-Yi Wu
c8488dc825
feat(gitea): implement Changelog function (#4794)
- Add `strings` package import to `gitea.go`
- Implement `Changelog` function in `gitea.go`
- Update `useGitea` constant in `changelog.go`
- Add test for `useGitea` in `changelog_test.go`
- Update `changelog.md` with information about `gitea` customization

ref:

* Server API: https://github.com/go-gitea/gitea/pull/30349
* SDK: https://gitea.com/gitea/go-sdk/pulls/659

---------

Signed-off-by: appleboy <appleboy.tw@gmail.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:26:13 -03:00
Carlos Alexandro Becker
faadd02cc1
docs: update bluesky docs
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:25:07 -03:00
Josh Ghiloni
de72cab5d9
feat(announce): add BlueSky support (#4779)
<!--

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... -->

If applied, this commit will allow users to create BlueSky posts
(skeets) about their Goreleaser-built projects

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

Because I wanted to post to BlueSky when projects I work on relating to
BlueSky are built!

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

Example post made during unit testing (requires an account to see):
https://bsky.app/profile/jaygles.bsky.social/post/3kpv573c2pc2k

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:15:26 -03:00
Carlos Alexandro Becker
3cd2e07c68
feat: notarize macos binaries (#4774)
this includes anchore/quill as a pipe to sign and notarize macos
binaries

TODO:

- [x] find a way to test this
- [x] docs
- [x] maybe get someone from anchore to take a look?

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-19 22:27:50 -03:00
Stepan Rabotkin
56e0f79473
fix(telegram): mdv2escape ProjectName by default (#4784)
This pull request fix case when ProjectName contains any not escaped
symbols
2024-04-15 07:57:45 -03:00
Carlos Alexandro Becker
60a1cccf57
feat: isEnvSet tmpl function (#4775)
useful for conditionally enable/disable things based on whether an env
var is set or not
2024-04-12 11:09:18 -03:00
Carlos Tadeu Panato Junior
780a3a40d9
fix: update SBOM generation to add .json as file type (#4781)
- add the file type in the end of the sbom generated file 
- fix wrong value attribution in the doc example

---------

Signed-off-by: cpanato <ctadeu@gmail.com>
2024-04-12 11:04:55 -03:00
Oleksandr Redko
9b3f514449
docs: description for chocolateys.package_source_url (#4763)
Adds missing description for the `package_source_url` option when
building Chocolatey packages.

This option is present in the config and nuspec:
-
826438b865/pkg/config/config.go (L1428)
-
826438b865/internal/pipe/chocolatey/nuspec.go (L25)

See also
https://docs.chocolatey.org/en-us/guides/create/create-config-package#creating-a-configuration-package
and
https://docs.chocolatey.org/en-us/community-repository/moderation/package-validator/rules/cpmr0040#reasoning.
2024-04-07 23:05:07 -03:00
Oleksandr Redko
f6615b138b
docs: fix typos (#4764)
This PR corrects grammar mistakes in documentation:

- artefacts -> artifacts
- Dockefile -> Dockerfile
- compliation -> compilation
- gorleaser -> goreleaser
- repositores -> repositories
- succesfull -> successful
2024-04-07 23:04:15 -03:00
Carlos Alexandro Becker
0ff94f13e4
fix: properly skip docker builds of skipped builds (#4747)
refs https://github.com/orgs/goreleaser/discussions/4469 closes
https://github.com/goreleaser/goreleaser/issues/4746

Also made the error better, and added more details to the docs.
2024-04-03 13:52:07 -03:00
Randy Fay
6353982e33
docs: Minor edits to 'dockerhub' (#4740)
Minor edits to the `dockerhub` docs.

Thanks for all your [help getting this
going](https://discord.com/channels/890434333251362866/1223342596231925852/1223342596231925852)

I note that you already updated a number of things. Here are just a
couple more edits.

Thanks for the great work!
2024-04-02 13:49:56 -03:00
Carlos Alexandro Becker
fa431f313d
docs: update docs 2024-04-01 10:26:09 -03:00
Carlos Alexandro Becker
7fc93995b8
feat: consistently use directory in property names (#4737)
It was a mess of "folder" x "directory", so changed it all to
"directory".

Closes #4732
2024-04-01 10:01:56 -03:00
Carlos Alexandro Becker
26c003a076
docs: dockerhub singular
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-03-29 21:22:49 -03:00
Randy Fay
79aa2fc319
docs: fix typo username in dockerhubs example (#4733)
<!-- If applied, this commit will... -->

Fix typo in dockerhubs example

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

fix typo

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

...
2024-03-29 17:36:34 -03:00
Carlos Alexandro Becker
1db9347363
feat(archives): format override to 'none' to skip certain goos (#4730)
closes #4644

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-03-29 16:20:05 -03:00
Hugo Hromic
f0abada909
docs: fix default for build.id attribute (#4734)
Fixes #4731
2024-03-29 16:19:32 -03:00
Carlos Alexandro Becker
e35473423d
docs: fix dockerhub missing images property
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-03-29 15:54:47 -03:00
Carlos Alexandro Becker
8cd325eb5a
fix: support dir in gomod (#4729)
closes https://github.com/orgs/goreleaser/discussions/4728
2024-03-29 10:27:33 -03:00
Carlos Alexandro Becker
2498ea7029
feat: add metadata to the release (#4714)
this will create a metadata artifact and allow to add them to the
release.

closes #4669
closes #4682

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-03-26 23:41:41 -03:00
Carlos Alexandro Becker
6e0f426339
feat: allow to delete existing artifacts in the release (#4711)
closes #4692
2024-03-19 23:25:42 -03:00
Carlos Alexandro Becker
54ee014b50
feat: checksums.split (#4707)
closes #4618
closes #4641

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-03-17 15:16:50 -03:00
Carlos Alexandro Becker
b728f52f68
docs: update sign docs
refs https://github.com/orgs/goreleaser/discussions/4702
2024-03-15 13:16:57 -03:00
Carlos Alexandro Becker
6262ce5433
docs: update nix.md 2024-03-12 10:02:20 -03:00
Carlos Alexandro Becker
85f213c9da
docs: clarify changelog sorting
refs https://github.com/goreleaser/goreleaser/issues/4642
2024-03-08 13:58:02 -03:00
Carlos Alexandro Becker
1f39bddcb3
docs: update 2024-03-03 10:53:17 -03:00
Jeffrey Cafferata
7baf594a13
docs: sort the GoReleaser configuration YAML code examples (#4652)
I have sorted the GoReleaser configuration YAML code examples as
follows:

```yaml
# This feature is only available in GoReleaser Pro.
# Since: v1.17 (pro)
# Default: .
# Templates: allowed
# Required
```
2024-02-27 09:56:24 -03:00
Carlos Alexandro Becker
4d2bcfdc46
feat(brew): allow to set headers in the url (#4648)
closes  #4647

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-02-26 17:22:12 -03:00
Kirill Nikolaev
ef90821ee7
feat(pipe/release): Mark GitHub releases as non-draft only after all artifacts are uploaded. (#4626)
Previously end-users would see missing artifacts if trying to use latest
version while artifacts are being uploaded.

This currently applies only to GitHub releases. GitLab does not support
drafts, and I don't dare to make the change for Gitea since I don't use
it (and can't test easily).

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-02-19 12:50:47 +00:00