Skip to content

Commit

Permalink
chore: update github actions
Browse files Browse the repository at this point in the history
Change-Id: I2ccb5e98c572efd9d6afa42f4091e8707a9cfe96
  • Loading branch information
gaoyibin.robin committed Aug 1, 2022
1 parent c4c95c6 commit c04e628
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ name: Go

on:
push:
branches: [ "main" ]
branches:
- "main"
tags:
- "*"
pull_request:
branches: [ "main" ]
branches:
- "main"

jobs:

build:
runs-on: ubuntu-latest
steps:
Expand All @@ -23,3 +26,12 @@ jobs:

- name: Test
run: go test -v ./...

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c04e628

Please sign in to comment.