fix: update action file to auto release plugin #10197
Signed-off-by: Son Bui <sonbv00@gmail.com>
This commit is contained in:
parent
8a578c9f4a
commit
13e4f8f84a
1 changed files with 4 additions and 6 deletions
10
.github/workflows/plugin.yaml
vendored
10
.github/workflows/plugin.yaml
vendored
|
@ -4,10 +4,8 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "main"
|
- "main"
|
||||||
paths:
|
|
||||||
- "cmd/plugin/**"
|
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- 'v*.*.*\+plugin'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # for goreleaser/goreleaser-action
|
contents: write # for goreleaser/goreleaser-action
|
||||||
|
@ -22,16 +20,16 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
|
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
||||||
with:
|
with:
|
||||||
go-version: 1.20
|
go-version: '1.20'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
|
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue