separate PR/dev actions

This commit is contained in:
David Edmondson 2021-09-06 13:46:59 -07:00
parent 6320189717
commit 27e2b2ea65
2 changed files with 33 additions and 22 deletions

31
.github/workflows/deploy.yml vendored Normal file

@ -0,0 +1,31 @@
name: CI
on:
push:
branches: [dev]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .

@ -1,22 +1,11 @@
# This is a basic workflow to help you get started with Actions
name: CI name: CI
# Controls when the workflow will run on: [push, pull_request]
on:
# Triggers the workflow on push or pull request events but only for the dev branch
push:
branches: [dev]
pull_request:
branches: [dev]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
# This workflow contains a single job called "build" # This workflow contains a single job called "build"
build: test:
# The type of runner that the job will run on # The type of runner that the job will run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -34,12 +23,3 @@ jobs:
- name: Test - name: Test
run: npm run test run: npm run test
- name: Build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .