From 423165a3a950ed0e5cfb686d96407c243a4f45da Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Tue, 16 Jul 2024 14:44:21 -0700 Subject: [PATCH] Enable previewing generated doc in PR --- .github/workflows/preview.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..3a75286 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,19 @@ +# Preview the generated doc in pull requests. + +name: Preview Generated Docs +on: + pull_request: + branches: ["master"] + +permissions: + pull-requests: write + +jobs: + documentation-links: + name: Preview Docs + runs-on: ubuntu-latest + steps: + - uses: readthedocs/actions/preview@v1 + with: + project-slug: "editorconfig-specification" + project-language: "en"