Skip to content

Commit

Permalink
upgrade GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
obcode committed Mar 8, 2023
1 parent ce7a512 commit 7aa110e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 30 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ on:
tags:
- v*
branches:
- master
- develop
- main
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: v1.48.0
version: latest
47 changes: 22 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
name: goreleaser

on:
pull_request:
push:
tags:
- '*'
pull_request:
push:
tags:
- "*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7aa110e

Please sign in to comment.