Skip to content

Commit 6cb2b9d

Browse files
authored
Merge pull request #719 from staticdev/ci/fix-trigger-for-release
Fix trigger for release
2 parents 784f1f1 + 4d7d57c commit 6cb2b9d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: Release
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
tags:
7-
description: Release Tag
8-
required: true
9-
type: string
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
107

118
jobs:
129
release:

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,12 @@ This will allow a chance to talk it over with the owners and validate your appro
117117
<!-- github-only -->
118118

119119
[code of conduct]: CODE_OF_CONDUCT.md
120+
121+
## How to release a new version
122+
123+
Just push a tag starting with v and using semantic versioning. Eg.
124+
125+
```sh
126+
git tag v2.0.0
127+
git push --tags
128+
```

0 commit comments

Comments
 (0)