Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 49 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,59 @@ on:
push:
tags:
- 'v*'
branches:
- fix/runner-space

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
name: Disk space before
run: |
df -h $GITHUB_WORKSPACE

-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21'
-
name: Import GPG key
id: import_gpg
uses: paultyng/ghaction-import-gpg@v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ""
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
name: CLEAN-UP
uses: jlumbroso/free-disk-space@main
with:
version: '1.26'
args: release --rm-dist --timeout 45m
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tool-cache: true

# all of these default to true, but feel free to set to
# false if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Disk space after CLEAN-UP
run: |
df -h $GITHUB_WORKSPACE
# -
# name: Checkout
# uses: actions/checkout@v2
# -
# name: Unshallow
# run: git fetch --prune --unshallow
# -
# name: Set up Go
# uses: actions/setup-go@v2
# with:
# go-version: '1.21'
# -
# name: Import GPG key
# id: import_gpg
# uses: paultyng/ghaction-import-gpg@v2.1.0
# env:
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
# PASSPHRASE: ""
# -
# name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v4
# with:
# version: '1.26'
# args: release --rm-dist --timeout 45m
# env:
# GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading