Change build logic

This commit is contained in:
Chris Hunt
2023-01-13 16:59:58 +00:00
parent baf9a277b7
commit 1e3adcef59
2 changed files with 24 additions and 16 deletions

View File

@@ -15,22 +15,7 @@ jobs:
- name: Build # Have to run processing first so the list.json exists to be included in the the deploy
run: |
npm ci --prefix processing
node processing
npm ci --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: Move to branch
if: github.ref != 'refs/heads/develop'
run: |
mv public ${{ github.head_ref || github.ref_name }}
mkdir public
mv ${{ github.head_ref || github.ref_name }} public
./build_all_branches.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4