Skip to content

Commit 5c8a147

Browse files
committed
Add .github/workflows/release.yml
1 parent bfd579a commit 5c8a147

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
paths:
10+
- '**/*.tpl'
11+
- '**/*.py'
12+
- '**/*.tf'
13+
- '.github/workflows/release.yml'
14+
15+
jobs:
16+
release:
17+
runs-on: ubuntu-latest
18+
# Skip running release workflow on forks
19+
if: github.repository_owner == 'justtrackio'
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
with:
24+
persist-credentials: false
25+
fetch-depth: 0
26+
27+
- name: Release
28+
uses: cycjimmy/semantic-release-action@v3
29+
with:
30+
semantic_version: 19.0.5
31+
extra_plugins: |
32+
@semantic-release/changelog
33+
@semantic-release/git
34+
conventional-changelog-conventionalcommits
35+
branches: |
36+
[
37+
'+([0-9])?(.{+([0-9]),x}).x',
38+
'master',
39+
'main'
40+
]
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

0 commit comments

Comments
 (0)