1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00

docs: bump setup-go version (#4638)

<!--

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 commit updates the GitHub Actions GoReleaser example by upgrading
setup-go from version 4 to version 5. Additionally, it includes cleanup
of the tables to address linting issues that flagged them as
"incorrect".

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

I updated the setup-go version in the GitHub Actions GoReleaser example
because right after I committed the exampled dependabot flagged the old
version as outdated and suggested an update. I figured it'd be simple to
just bump up the version to keep things current.

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

...
This commit is contained in:
David Dymko 2024-02-19 06:43:37 -05:00 committed by GitHub
parent aaa1181abf
commit fd24a00e47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: stable
# More assembly might be required: Docker logins, GPG, etc.
@ -133,7 +133,7 @@ signs:
Following inputs can be used as `step.with` keys
| Name | Type | Default | Description |
| -------------- | ------ | ------------ | ---------------------------------------------------------------- |
|----------------|--------|--------------|------------------------------------------------------------------|
| `distribution` | String | `goreleaser` | GoReleaser distribution, either `goreleaser` or `goreleaser-pro` |
| `version`[^1] | String | `latest` | GoReleaser version |
| `args` | String | | Arguments to pass to GoReleaser |
@ -149,7 +149,7 @@ Following inputs can be used as `step.with` keys
Following outputs are available
| Name | Type | Description |
| ----------- | ---- | ---------------------- |
|-------------|------|------------------------|
| `artifacts` | JSON | Build result artifacts |
| `metadata` | JSON | Build result metadata |
@ -158,7 +158,7 @@ Following outputs are available
Following environment variables can be used as `step.env` keys
| Name | Description |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| `GITHUB_TOKEN` | [GITHUB_TOKEN](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token) as provided by `secrets` |
| `GORELEASER_KEY` | Your [GoReleaser Pro](https://goreleaser.com/pro) License Key, in case you are using the `goreleaser-pro` distribution |