Skip to content

Commit 52a91ff

Browse files
committed
Release workflow
1 parent c3b6ef5 commit 52a91ff

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Create release"
4+
5+
on:
6+
push:
7+
tags:
8+
- '*'
9+
10+
jobs:
11+
deploy:
12+
name: "Deploy"
13+
runs-on: "ubuntu-latest"
14+
15+
steps:
16+
- name: "Checkout"
17+
uses: "actions/checkout@v2"
18+
19+
- name: "Generate release changelog"
20+
id: generate-release-changelog
21+
uses: heinrichreimer/[email protected]
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
onlyLastTag: "true"
25+
stripHeaders: "true"
26+
stripGeneratorNotice: "true"
27+
28+
- name: "Create release"
29+
id: create-release
30+
uses: actions/create-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
tag_name: ${{ github.ref }}
35+
release_name: ${{ github.ref }}
36+
body: ${{ steps.generate-release-changelog.outputs.changelog }}

0 commit comments

Comments
 (0)