Skip to content

Commit

Permalink
Merge pull request #30 from masayuki14/feature/workflow
Browse files Browse the repository at this point in the history
ビルド、デプロイをするworkflowを作成
  • Loading branch information
masayuki14 authored Nov 13, 2020
2 parents 693b7f7 + 9a49208 commit f5e032e
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflow/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: KukuPad CI

on: [push pull_request]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: setup node.jobs
uses: actions/setup-node@v1
with:
node-version: 15.x

- name: install package
run: yarn

- name: eslint
run: yarn lint

deploy:
if: github.event.pull_request.merged == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: setup node.jobs
uses: actions/setup-node@v1
with:
node-version: 15.x

- name: install package
run: yarn

- name: build
run: yarn build

- name: deploy
run: yarn deploy
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: KukuPad CI

on: pull_request

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: setup node.jobs
uses: actions/setup-node@v1
with:
node-version: 15.x

- name: install package
run: yarn

- name: eslint
run: yarn lint

deploy:
if: github.event.pull_request.merged == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: setup node.jobs
uses: actions/setup-node@v1
with:
node-version: 15.x

- name: install package
run: yarn

- name: build
run: yarn build

- name: deploy
run: yarn deploy
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint src",
"deploy": "gh-pages -d build"
},
"browserslist": {
Expand Down

0 comments on commit f5e032e

Please sign in to comment.