Our generated pages contain some massive JS bundles that don't need to kept around in git forever
27 lines
518 B
YAML
27 lines
518 B
YAML
name: Deploy
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 10.x
|
|
- run: npm ci
|
|
- run: npm run build
|
|
env:
|
|
NODE_ENV: production
|
|
ENABLE_SERVICE_WORKER: 1
|
|
- run: npm test
|
|
- name: Deploy
|
|
uses: JamesIves/github-pages-deploy-action@4.1.4
|
|
with:
|
|
branch: gh-pages
|
|
folder: dist
|
|
single-commit: true
|