1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00

docs: update error page

This commit is contained in:
Carlos Alexandro Becker 2024-06-04 10:13:11 -03:00
parent 4d9198cafe
commit 0e22f07349
No known key found for this signature in database

View File

@ -14,6 +14,8 @@ Integrations that may cause this:
- Homebrew Tap
- Krew Plugins
- Scoop Manifests
- Nixpkgs
## Fixing it
@ -25,11 +27,11 @@ You can create a PAT and use it for the entire GoReleaser action run.
You'll need to add it as secret and pass it to the action, for instance:
```yaml
# .github/workflows/goreleaser.yaml
# .github/workflows/release.yaml
# ...
- uses: goreleaser/goreleaser-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- uses: goreleaser/goreleaser-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
# ...
```
@ -42,12 +44,12 @@ Let's see, for example, how it would look like for Homebrew Taps.
We would need to change the workflow file:
```yaml
# .github/workflows/goreleaser.yaml
# .github/workflows/release.yaml
# ...
- uses: goreleaser/goreleaser-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
# ...
```
@ -57,11 +59,11 @@ And also the `.goreleaser.yaml` file:
# .goreleaser.yaml
# ...
brews:
- name: myproject
tap:
owner: user
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
- name: myproject
tap:
owner: user
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
# ...
```