Skip to content

Commit

Permalink
Merge pull request #1 from perst-one/develop
Browse files Browse the repository at this point in the history
add release wordflow
  • Loading branch information
yktakaha4 authored Jun 23, 2020
2 parents d37b411 + e1e7544 commit 310eafd
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
push:
tags:
- "[0-9]+\\.[0-9]+"

name: Release

env:
KINTONE_DOMAIN: ${{ secrets.KINTONE_DOMAIN }}
KINTONE_USERNAME: ${{ secrets.KINTONE_USERNAME }}
KINTONE_PASSWORD: ${{ secrets.KINTONE_PASSWORD }}
KINTONE_PRIVATE_PPK: ${{ secrets.KINTONE_PRIVATE_PPK }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

jobs:
deploy:
name: Deploy
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

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

- run: npm ci
- run: npm run generate:ppk
- run: npm run build

- uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ env.GITHUB_TOKEN }}
file: dist/plugin.zip
asset_name: ${{ github.event.repository.name }}
tag: ${{ github.ref }}
overwrite: true

- uses: homoluctus/[email protected]
if: always()
with:
type: ${{ job.status }}
job_name: "*${{ github.workflow }} ${{ github.repository }}*"
url: ${{ env.SLACK_WEBHOOK_URL }}

0 comments on commit 310eafd

Please sign in to comment.