Skip to content

Test and Publish Nightingale App #1392

Test and Publish Nightingale App

Test and Publish Nightingale App #1392

name: Test and Publish Nightingale App
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14.15.1'
- name: Install and Build 🔧
run: |
yarn
yarn bootstrap
yarn build
- name: Test 🧪
run: |
yarn test
- name: Build Site 🏗
run: |
yarn build-site
ls -l app/dist
- name: Deploy Site 🚀
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v3'
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: app/dist # The folder the action should deploy.
target-folder: v3