add tag support
This commit is contained in:
parent
f78c86b8af
commit
f29e22bf64
3 changed files with 11 additions and 1 deletions
1
.github/workflows/docker-publish.yml
vendored
1
.github/workflows/docker-publish.yml
vendored
|
|
@ -10,6 +10,7 @@ on:
|
|||
workflows: ["E2E"]
|
||||
types: [completed]
|
||||
branches: [master]
|
||||
tags: [ 'v*.*.*' ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
|
|||
8
.github/workflows/go.yml
vendored
8
.github/workflows/go.yml
vendored
|
|
@ -22,6 +22,8 @@ jobs:
|
|||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Dep
|
||||
run: |
|
||||
|
|
@ -50,3 +52,9 @@ jobs:
|
|||
- name: Test
|
||||
run: go test -v .
|
||||
working-directory: sshpiperd
|
||||
|
||||
- name: create release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release create -d --generate-notes v$NBGV_SimpleVersion
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
|
||||
"version": "0.7",
|
||||
"publicReleaseRefSpec": [
|
||||
"^refs/heads/master$"
|
||||
"^refs/heads/master$",
|
||||
"^refs/tags/v\\d+\\.\\d+\\.\\d+"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue