Skip to content

Commit

Permalink
[release.yml] Add auto release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
homoluctus committed Nov 19, 2019
1 parent c6e18f2 commit 1c2d3ad
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release New Version

on:
push:
tags:
- 'v*'

jobs:
release:
name: Pre Release
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1

- uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Create Pre Release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: 'false'
prerelease: 'true'

- name: Slack Notification
uses: homoluctus/slatify@master
if: always()
with:
type: ${{ job.status }}
job_name: ':rocket: *Publish new release ${{ github.ref }}*'
channel: '#develop'
url: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 1c2d3ad

Please sign in to comment.