Skip to content

Commit

Permalink
Create test_and_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
haeminn authored Jan 5, 2021
1 parent 48fd4c0 commit 306e709
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build, Test, and Deploy

on: [push]
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Use Node.js 12.x
uses: actions/checkout@v1
with:
node-version: 12.x

- name: Install
run: |
npm ci
env:
CI: true

- name: Build
run: |
npm run build
env:
CI: true

- name: Test
run: |
npm run ci
env:
CI: true

- name: Prepare and deploy
run: |
npm run deploy-docs -- --name="Swimlane" --email="[email protected]" --no-silent
if: ${{ github.ref == 'refs/heads/master' }}
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 306e709

Please sign in to comment.