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 a7e9a08 commit 149d217
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 19 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-and-deploy

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

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
- run: rm .gitignore
- 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.

4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
dist/ifcomp
dist/inform7/Parchment
dist/lectrote
dist/
node_modules

package-lock.json
Expand Down

0 comments on commit 149d217

Please sign in to comment.