Skip to content

Commit 1c2d3ad

Browse files
committed
[release.yml] Add auto release workflow
1 parent c6e18f2 commit 1c2d3ad

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release New Version
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
name: Pre Release
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v1
14+
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '12.x'
18+
19+
- name: Create Pre Release
20+
uses: actions/[email protected]
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
tag_name: ${{ github.ref }}
25+
release_name: ${{ github.ref }}
26+
draft: 'false'
27+
prerelease: 'true'
28+
29+
- name: Slack Notification
30+
uses: homoluctus/slatify@master
31+
if: always()
32+
with:
33+
type: ${{ job.status }}
34+
job_name: ':rocket: *Publish new release ${{ github.ref }}*'
35+
channel: '#develop'
36+
url: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)