Skip to content

Commit

Permalink
switch to rossjrw/pr-preview-action
Browse files Browse the repository at this point in the history
  • Loading branch information
robtaylor committed Feb 1, 2024
1 parent 894c16f commit 12d3aed
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 84 deletions.
84 changes: 0 additions & 84 deletions .github/workflows/gh-pages.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# .github/workflows/preview.yml
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 repo
uses: actions/checkout@v4
with:
submodules: true # fetch the theme

- name: Install website build dependencies
sudo apt update
sudo apt install -y graphviz doxygen doxygen-latex python3-docutils qtbase5-dev libqt5svg5-dev

- name: Setup PDM
uses: pdm-project/setup-pdm@c050bdcb2405837648035b6678c75609d53a749f

- name: Build website
run: |
pdm sync -d --no-self
pdm run meson setup --prefix=/home/runner/work/install -D docs=true -D only-docs=true -D docs-siteurl=$BASE_URL builddir
pdm run meson install -C builddir
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: /home/runner/work/install/share/doc/html

0 comments on commit 12d3aed

Please sign in to comment.