Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: improve actions docs
  • Loading branch information
caarlos0 committed Sep 14, 2022
1 parent cb68678 commit a8403f2
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions www/docs/ci/actions.md
Expand Up @@ -30,22 +30,15 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Fetch all tags
run: git fetch --force --tags
-
name: Set up Go
uses: actions/setup-go@v2
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version: 1.19
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
cache: true
- uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
Expand Down Expand Up @@ -74,6 +67,11 @@ jobs:
For more information, take a look at
[actions/checkout#290](https://github.com/actions/checkout/issues/290).

#### Caching go dependencies
When using the `setup-go` action, you can optionally set `cache: true` for
it to aumatically cache and restore your go dependencies, which usually
helps speed up build times.

!!! tip
For detailed instructions please follow GitHub Actions [workflow syntax][syntax].

Expand Down

0 comments on commit a8403f2

Please sign in to comment.