From 1c2d3ad34f878fc16a77034ab945de864c4a5e20 Mon Sep 17 00:00:00 2001 From: homoluctus Date: Tue, 19 Nov 2019 12:00:12 +0900 Subject: [PATCH 1/2] [release.yml] Add auto release workflow --- .github/workflows/release.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fd36d48 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} From 9b5ba96afb51d5f201c3e4017a789d254ecf94dd Mon Sep 17 00:00:00 2001 From: homoluctus Date: Tue, 19 Nov 2019 12:02:11 +0900 Subject: [PATCH 2/2] [test.yml] Restrict event trigger for test --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4ef938..e1e72f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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