From 309835d8c0ab16c773655e94f02ed3c8a9841946 Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Tue, 5 Mar 2024 16:55:26 -0800 Subject: [PATCH] Add readthedocs/preview action for website preview on PR Signed-off-by: Cary Phillips --- .github/workflows/ci_workflow.yml | 6 ++++-- .github/workflows/website_preview.yml | 27 ++++++++++++++++++++++++++ .github/workflows/website_workflow.yml | 2 -- website/news.rst | 2 +- 4 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/website_preview.yml diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 33670f472c..ff141f58ed 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -25,7 +25,8 @@ on: - 'website/src/**' - '!bazel/**' - '!src/wrappers/**' - - '!.github/workflows/python-**.yml' + - '!.github/workflows/**' + - '.github/workflows/ci_workflow.yml' pull_request: branches-ignore: - RB-2.* @@ -39,7 +40,8 @@ on: - 'website/src/**' - '!bazel/**' - '!src/wrappers/**' - - '!.github/workflows/python-**.yml' + - '!.github/workflows/**' + - '.github/workflows/ci_workflow.yml' permissions: contents: read diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml new file mode 100644 index 0000000000..fced7fca30 --- /dev/null +++ b/.github/workflows/website_preview.yml @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (c) Contributors to the OpenEXR Project. +# +# GitHub Actions workflow file +# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions + +name: Website preview +on: + pull_request_target: + types: + - opened + paths: + - 'website/**' + +permissions: + pull-requests: write + +jobs: + pull-request-links: + runs-on: ubuntu-latest + steps: + - uses: readthedocs/actions/preview@v1 + with: + project-slug: "openexr" + message-template: "Website preview: {docs-pr-index-url}" + + diff --git a/.github/workflows/website_workflow.yml b/.github/workflows/website_workflow.yml index f960d97c44..28edd16a6f 100644 --- a/.github/workflows/website_workflow.yml +++ b/.github/workflows/website_workflow.yml @@ -10,8 +10,6 @@ name: Website # Skip the release branches, since the website is built from main. on: - workflow_dispatch: - push: branches:-ignore: - RB-2.* diff --git a/website/news.rst b/website/news.rst index 65ab09efa5..eed92d0032 100644 --- a/website/news.rst +++ b/website/news.rst @@ -31,7 +31,7 @@ Patch release that addresses `CVE-2023-5841 `_. February 11, 2024 - OpenEXR v3.1.12 Released -=========================================== +============================================ Patch release that addresses `CVE-2023-5841 `_.