Skip to content

Commit

Permalink
Add readthedocs/preview action for website preview on PR
Browse files Browse the repository at this point in the history
Signed-off-by: Cary Phillips <[email protected]>
  • Loading branch information
cary-ilm committed Mar 6, 2024
1 parent 2a579fd commit 309835d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand All @@ -39,7 +40,8 @@ on:
- 'website/src/**'
- '!bazel/**'
- '!src/wrappers/**'
- '!.github/workflows/python-**.yml'
- '!.github/workflows/**'
- '.github/workflows/ci_workflow.yml'

permissions:
contents: read
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/website_preview.yml
Original file line number Diff line number Diff line change
@@ -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}"


2 changes: 0 additions & 2 deletions .github/workflows/website_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down
2 changes: 1 addition & 1 deletion website/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Patch release that addresses
`CVE-2023-5841 <https://takeonme.org/cves/CVE-2023-5841.html>`_.

February 11, 2024 - OpenEXR v3.1.12 Released
===========================================
============================================

Patch release that addresses
`CVE-2023-5841 <https://takeonme.org/cves/CVE-2023-5841.html>`_.
Expand Down

0 comments on commit 309835d

Please sign in to comment.