Skip to content

build

build #101

Workflow file for this run

name: build
on:
push:
branches: njucs-compiler
workflow_dispatch: # add manual button
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
PUBLISH_BRANCH: njucs-compiler-release
PUBLISH_DIR: dist