Skip to content

Commit 0117f3e

Browse files
authored
Merge pull request #35 from nstack-io/feat/releases
build: Add workflow for creating releases
2 parents f3f7bf1 + 43bacad commit 0117f3e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow creates a release for every pushed tag with a changelog based on conventional commits.
2+
name: Release
3+
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
9+
jobs:
10+
create-release:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Create changelog.yml text
18+
id: changelog
19+
uses: loopwerk/tag-changelog@v1
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
exclude_types: other,doc,chore,build
23+
24+
- name: Create release
25+
uses: actions/create-release@latest
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
tag_name: ${{ github.ref }}
30+
release_name: ${{ github.ref }}
31+
body: ${{ steps.changelog.outputs.changes }}

0 commit comments

Comments
 (0)