Skip to content

Commit

Permalink
ci: space_cleanup (#1608)
Browse files Browse the repository at this point in the history
* Free Disk Space

* sithout conateinr

---------

Co-authored-by: amitz <[email protected]>
  • Loading branch information
amitza and amitz authored Aug 4, 2024
1 parent 6e840fd commit 3de6e2e
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,18 @@ jobs:
release:
name: 'release'
runs-on: ubuntu-latest
container:
image: goreleaser/goreleaser-cross:v1.22

permissions:
contents: write

steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
large-packages: false
docker-images: false
swap-storage: false
tool-cache: false

- name: Mark github workspace as safe
run: |
sh -c "git config --global --add safe.directory $PWD"

- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -42,19 +39,11 @@ jobs:
- name: Fetch all tags
run: |
git fetch --force --tags
- name: Configure Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum


- name: Run GoReleaser
id: releaser
uses: goreleaser/goreleaser-action@v5
uses: docker://goreleaser/goreleaser-cross:v1.22
with:
version: '~> v2'
args: release --clean --timeout 90m
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 3de6e2e

Please sign in to comment.