Skip to content

Addition of three new examples under optimial control. #507

Addition of three new examples under optimial control.

Addition of three new examples under optimial control. #507

Workflow file for this run

name: Documentation
on:
push:
branches: [master]
tags: '*'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build:
if: github.event.pull_request.draft == false
env:
GKS_ENCODING: "utf8"
GKSwstype: "100"
PLOTS_TEST: "true"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.6' # Build documentation on Julia 1.6
- name: Install plotting dependencies # For enabling GR.jl (used by Plots.jl)
run: |
sudo apt-get update
sudo apt-get install -y qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
- name: Install julia dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Plot friendly RUNCMD # needed to enable Plots.jl correctly
run: echo "RUNCMD=xvfb-run --auto-servernum julia" >> $GITHUB_ENV
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: $RUNCMD --project=docs/ --color=yes docs/make.jl