Skip to content

Adding piecewise linear limits. (#139) #479

Adding piecewise linear limits. (#139)

Adding piecewise linear limits. (#139) #479

name: Publish Website
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build_docs_job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
cache-dependency-path: ./momentum/website/yarn.lock
- name: Install dependencies
run: sudo apt-get install doxygen
- name: Build the Website
working-directory: momentum/website
run: |
yarn install --frozen-lockfile
yarn run build
- name: Deploy
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: momentum/website/build # The folder the action should deploy.