Skip to content

Commit 7a3a70e

Browse files
authored
Merge pull request #22 from homoluctus/feature/auto_release
Auto release workflow
2 parents 7f575ec + 9b5ba96 commit 7a3a70e

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
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 }}

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Test my typescript action
22

3-
on: pull_request
3+
on:
4+
pull_request:
5+
paths:
6+
- 'src/**'
7+
- 'dist/**'
8+
- tsconfig.json
9+
- package*
410

511
env:
612
IMAGE_NAME: alpine:3.10.1

0 commit comments

Comments
 (0)