Skip to content

ExaWind Benchmark: Transition model airfoil cases #5

ExaWind Benchmark: Transition model airfoil cases

ExaWind Benchmark: Transition model airfoil cases #5

Workflow file for this run

name: ExaWind-Benchmarks-Website
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{github.ref}}-${{github.head_ref}}-docs
cancel-in-progress: true
jobs:
Docs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v4
- name: Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Dependencies
run: |
export DEBIAN_FRONTEND=noninteractive
python3 -m pip install --upgrade pip
pip3 install sphinx sphinx_rtd_theme sphinx_toolbox sphinx_copybutton
- name: Build
run: |
echo "::add-matcher::.github/problem-matchers/sphinx.json"
sphinx-build -M html ./.website_src ./build_docs/website -W --keep-going -n 2>&1 | tee -a build-output.txt
mv ./build_docs/website/html ./documentation
touch ./documentation/.nojekyll
- name: Report
run: |
echo "::add-matcher::.github/problem-matchers/sphinx.json"
egrep "WARNING:|Warning:|warning:|ERROR:|Error:|error:" build-output.txt | sort | uniq | \
awk 'BEGIN{i=0}{print $0}{i++}END{print "Warnings: "i}' > build-output-warnings.txt
cat build-output-warnings.txt
exit $(tail -n 1 build-output-warnings.txt | awk '{print $2}')
- name: Deploy
if: github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
BRANCH: gh-pages
FOLDER: documentation
SINGLE_COMMIT: true