Skip to content

Commit 402fecf

Browse files
committed
Added release workflow
1 parent d19e840 commit 402fecf

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/release.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
create_release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Get version from package.json
21+
id: package-version
22+
uses: martinbeentjes/[email protected]
23+
24+
- name: Read CHANGELOG.md
25+
id: changelog
26+
uses: juliangruber/read-file-action@v1
27+
with:
28+
path: ./CHANGELOG.md
29+
30+
- name: Create Release
31+
id: create_release
32+
uses: actions/create-release@v1
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
tag_name: v${{ steps.package-version.outputs.current-version}}
37+
release_name: Release ${{ steps.package-version.outputs.current-version }}
38+
body: ${{ steps.changelog.outputs.content }}
39+
draft: false
40+
prerelease: false
41+
42+
# Add more steps here as needed, such as building and uploading artifacts

0 commit comments

Comments
 (0)