Skip to content

Commit 3399e04

Browse files
authored
Create release.yml
1 parent 4c2769e commit 3399e04

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
push:
3+
tags:
4+
- '*' # Create release for every new tag
5+
6+
name: Create Release
7+
8+
jobs:
9+
build:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
- name: Create Release Notes
16+
uses: johnyherangi/create-release-notes@main
17+
id: create-release-notes
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
head-ref: ${{ github.ref }}
22+
- name: Create Release
23+
id: create_release
24+
uses: actions/create-release@v1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
tag_name: ${{ github.ref }}
29+
release_name: ${{ github.ref }}
30+
body: |
31+
## What's Changed
32+
${{ steps.create-release-notes.outputs.release-notes }}
33+
draft: false
34+
prerelease: false

0 commit comments

Comments
 (0)