From 4e72c71d56f59667391bd1e7870f675b1be4a791 Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Thu, 1 Feb 2024 01:07:37 +0000 Subject: [PATCH 1/3] Revert Pull Request target - this was causing all PRs to act like they were being run on main branch --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7dc054e26..fbacb11a6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -5,7 +5,7 @@ on: push: branches: - main # deploy main. If your branch is `master`, you'll have to replace that throughout this file. - pull_request_target: # This will publish a site preview on every pull request, and also run the build command to test if the site is broken. + pull_request: # This will publish a site preview on every pull request, and also run the build command to test if the site is broken. jobs: deploy: From 514482dc82a36d23bc53510220cab36a8563ff2e Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Thu, 1 Feb 2024 01:10:22 +0000 Subject: [PATCH 2/3] Update apt before building website --- .github/workflows/gh-pages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index fbacb11a6..afe480cca 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -43,6 +43,7 @@ jobs: - name: Build website run: | + sudo apt update sudo apt install -y graphviz doxygen doxygen-latex python3-docutils qtbase5-dev libqt5svg5-dev 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 From cb2e28836d3fddc9ad31611945b177565b187caa Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Thu, 1 Feb 2024 01:31:45 +0000 Subject: [PATCH 3/3] Bump versions of gh actions for node 20 --- .github/workflows/gh-pages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index afe480cca..0669c9f88 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -29,7 +29,7 @@ jobs: # run: echo "DOMAIN=${{ github.actor }}.github.io" >> $GITHUB_ENV - name: Checkout website repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true # fetch the theme # you need to set this as an environment env if your repo or any submodules (e.g the theme) is private: @@ -39,7 +39,7 @@ jobs: run: echo "BASE_URL=https://${{ env.DOMAIN }}/${{ github.event.repository.name }}/" >> $GITHUB_ENV - name: Setup PDM - uses: pdm-project/setup-pdm@v3 + uses: pdm-project/setup-pdm@c050bdcb2405837648035b6678c75609d53a749f - name: Build website run: |