Skip to content

Commit

Permalink
Merge pull request #22 from homoluctus/feature/auto_release
Browse files Browse the repository at this point in the history
Auto release workflow
  • Loading branch information
homoluctus authored Nov 19, 2019
2 parents 7f575ec + 9b5ba96 commit 7a3a70e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
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/[email protected]
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 }}
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Test my typescript action

on: pull_request
on:
pull_request:
paths:
- 'src/**'
- 'dist/**'
- tsconfig.json
- package*

env:
IMAGE_NAME: alpine:3.10.1
Expand Down

0 comments on commit 7a3a70e

Please sign in to comment.