2020-11-29 22:17:40 +08:00
|
|
|
name: Agent release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- "script/**"
|
|
|
|
- ".gitignore"
|
2020-12-07 09:38:10 +08:00
|
|
|
- "*.md"
|
2020-11-29 22:17:40 +08:00
|
|
|
- "cmd/dashboard/**"
|
2020-12-13 01:55:35 +08:00
|
|
|
- ".github/workflows/dashboard.yml"
|
2020-11-29 22:17:40 +08:00
|
|
|
tags:
|
|
|
|
- "v*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Run GoReleaser
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
args: release --rm-dist
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|