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: tags:
- v* - v*
branches: branches:
- master
- main - main
pull_request: pull_request:
jobs: jobs:

View File

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