From 755ddfdf06c6cb3846cf9f157b947e5fa3133921 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Tue, 16 Jul 2024 15:11:51 -0700 Subject: [PATCH] Enable previewing generated doc in PR (#51) --- .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..dda3ea6 --- /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" + single-version: true