Fix goreleaser github action

This commit is contained in:
Klondike Dragon 2024-01-08 22:40:45 -07:00
parent 69f12a31e3
commit 597b525a1a
3 changed files with 6 additions and 20 deletions

View File

@ -4,7 +4,6 @@ on:
tags:
- v*
branches:
- master
- main
pull_request:
jobs:

View File

@ -9,14 +9,14 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20
- name: Cache-Go
uses: actions/cache@v1
with:
@ -34,6 +34,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,13 +0,0 @@
language: go
go:
- 1.20.x
before_install:
- go get -t -v ./...
script:
- go test -race -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)