🐛 fix workflow

This commit is contained in:
naiba 2020-12-13 00:23:28 +08:00
parent 8ddb1e3909
commit 0af85dfb12
2 changed files with 6 additions and 3 deletions

View File

@ -7,7 +7,7 @@ on:
- ".gitignore" - ".gitignore"
- "*.md" - "*.md"
- "cmd/dashboard/**" - "cmd/dashboard/**"
- ".github/dashboard.yaml" - ".github/workflows/dashboard.yaml"
tags: tags:
- "v*" - "v*"
@ -16,12 +16,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.10.8
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2 uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
version: latest version: latest
go-version: 1.10.8
args: release --rm-dist args: release --rm-dist
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -9,7 +9,7 @@ on:
- ".gitignore" - ".gitignore"
- "*.md" - "*.md"
- "cmd/agent/**" - "cmd/agent/**"
- ".github/agent.yaml" - ".github/workflows/agent.yaml"
- ".goreleaser.yml" - ".goreleaser.yml"
jobs: jobs: