Skip to content

Commit

Permalink
Fix goreleaser github action
Browse files Browse the repository at this point in the history
This will fix the goreleaser github action as it
is failing with 'no disk space left' error. This will
use free disk space action to free some space on
runner and also we dont need cache step as it is
inbuilt the setup-go action now
  • Loading branch information
piyush-garg authored and savitaashture committed Feb 28, 2024
1 parent cd3d299 commit 8b695d1
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,23 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: false
swap-storage: false

- uses: actions/checkout@v4
- run: git fetch --prune --unshallow

- uses: actions/setup-go@v5
with:
go-version: '1.20'

- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashfiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: goreleaser/[email protected]
with:
version: latest
Expand Down

0 comments on commit 8b695d1

Please sign in to comment.