diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml deleted file mode 100644 index a3943fb..0000000 --- a/.github/workflow/ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -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 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..4b757e2 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,20 @@ +name: KukuPad CI + +on: push + +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 diff --git a/.github/workflows/ci.yml b/.github/workflows/deploy.yml similarity index 57% rename from .github/workflows/ci.yml rename to .github/workflows/deploy.yml index 640be31..5efa4e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/deploy.yml @@ -1,24 +1,11 @@ name: KukuPad CI -on: pull_request +on: + push: + branches: + - main 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