release 0.20.1 #5434
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs build and deploy | |
on: | |
pull_request: | |
branches: | |
- master | |
- sd/beta-20 | |
push: | |
tags: | |
- '*' | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
# NOTE: Python is necessary for the pre-rendering (minification) step | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install binary dependencies | |
run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev | |
# NOTE: Here you can install dependencies such as matplotlib if you use | |
# packages such as PyPlot. | |
# - run: pip install matplotlib | |
- name: Install Julia | |
uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1' | |
- name: Build and deploy docs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: > | |
cd docs; | |
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' | |
julia --color=yes makedocs.jl | |
- name: Upload site as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Docs build | |
path: ./docs/__site |