Skip to content

Commit

Permalink
Add Deploy to Pages job
Browse files Browse the repository at this point in the history
  • Loading branch information
curiousdannii committed Nov 29, 2021
1 parent 061738c commit 3301a4e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 16 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: test-and-deploy

on:
push:
branches:
- '*'
- '!gh-pages'
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v2
with:
node-version: '17'
- run: npm install
- run: npm run lint

deploy:
needs: test
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: '17'
- run: npm install
- run: npm run link-local-emglken
- name: Build Emglken
run: cd src/upstream/emglken && npm run build
- run: npm run gulp
- run: npm run inform7
- name: Deploy to Pages 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: .
16 changes: 0 additions & 16 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 3301a4e

Please sign in to comment.