workspaces_registry_template/.github/workflows/build-and-deploy.yml
2023-01-10 13:19:21 +00:00

35 lines
839 B
YAML

name: Node.js CI
on:
push:
branches: [ develop ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Pre Process # Have to run processing first so the list.json exists to be included in the the deploy
run: |
npm ci --prefix processing
node processing
- name: Build
run: |
npm ci --prefix site
npm run build --prefix site
npm run deploy --prefix site
- name: Generate App List # Have to run it again because the deploy wipes the file and folders out
run: |
npm ci --prefix processing
node processing
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: site/out