chore: fix CI
This commit is contained in:
parent
20d34c6c0a
commit
7b2c71435e
39
.github/workflows/release.yml
vendored
39
.github/workflows/release.yml
vendored
@ -14,12 +14,27 @@ jobs:
|
|||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# temporary workaround for an error in free disk space action
|
||||||
|
# https://github.com/jlumbroso/free-disk-space/issues/14
|
||||||
|
- name: Update Package List and Remove Dotnet
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get remove -y '^dotnet-.*'
|
||||||
|
|
||||||
# https://github.com/marketplace/actions/checkout
|
# https://github.com/marketplace/actions/free-disk-space-ubuntu
|
||||||
- name: Check out code
|
- name: Free Disk Space
|
||||||
uses: actions/checkout@v3
|
uses: jlumbroso/free-disk-space@main
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
# this might remove tools that are actually needed
|
||||||
|
tool-cache: false
|
||||||
|
|
||||||
|
# all of these default to true
|
||||||
|
android: true
|
||||||
|
dotnet: true
|
||||||
|
haskell: true
|
||||||
|
large-packages: true
|
||||||
|
docker-images: true
|
||||||
|
swap-storage: false
|
||||||
|
|
||||||
# https://github.com/marketplace/actions/setup-go-environment
|
# https://github.com/marketplace/actions/setup-go-environment
|
||||||
- name: Set up Go ${{ env.GO_VERSION }}
|
- name: Set up Go ${{ env.GO_VERSION }}
|
||||||
@ -27,23 +42,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
# https://github.com/marketplace/actions/cache
|
# https://github.com/marketplace/actions/checkout
|
||||||
- name: Cache Go modules
|
- name: Check out code
|
||||||
uses: actions/cache@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: ~/go/pkg/mod
|
fetch-depth: 0
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-
|
|
||||||
|
|
||||||
- name: Make
|
- name: Make
|
||||||
run: make build
|
run: make build
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v4
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist --timeout=90m
|
args: release -p 1 --clean --timeout=90m
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user