Skip to content

Commit

Permalink
Build PR preview
Browse files Browse the repository at this point in the history
  • Loading branch information
schroedtert committed Sep 22, 2023
1 parent 96d9a60 commit 3002756
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/docs.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/pr-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy PR previews

on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed

concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run:
sudo apt-get update && sudo apt-get install -y g++ cmake ninja-build

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install jupedsim
run: |
pip install .
- name: Build documentation
run: |
python3 -m pip install -r docs/requirements.txt
sphinx-build docs/source docs/build -j$(nproc)
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs/build/
File renamed without changes.

0 comments on commit 3002756

Please sign in to comment.