Skip to content

Build

Build #579

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_run:
workflows: ["Collect"]
branches: [main]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: npm install
run: npm install
- name: npm run collect
run: npm run collect
- name: npm run build
run: npm run build
- name: push changes to remote
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: git add
run: git add gitBuild && git commit -m "Initial build subtree commit"
- name: git push
run: |
git subtree split --prefix gitBuild -b gh-pages
git push -f origin gh-pages:gh-pages
git branch -D gh-pages