mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
🐛 fix workflow
This commit is contained in:
parent
8ddb1e3909
commit
0af85dfb12
7
.github/workflows/agent.yml
vendored
7
.github/workflows/agent.yml
vendored
@ -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 }}
|
||||||
|
2
.github/workflows/dashboard.yml
vendored
2
.github/workflows/dashboard.yml
vendored
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user