From ebd8baf61ff8e00f8de3b63c00531765672000c8 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 21 Sep 2021 12:32:46 -0400 Subject: [PATCH] Clear our destination directories before copying files to GitHub pages. (#10869) This should fix stale deleted files being still accessible. --- .github/workflows/docs.yaml | 1 - changelog.d/10869.doc | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 changelog.d/10869.doc diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 808f82533128..2bf32e376b06 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -61,6 +61,5 @@ jobs: uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - keep_files: true publish_dir: ./book destination_dir: ./${{ steps.vars.outputs.branch-version }} diff --git a/changelog.d/10869.doc b/changelog.d/10869.doc new file mode 100644 index 000000000000..c117386072c3 --- /dev/null +++ b/changelog.d/10869.doc @@ -0,0 +1 @@ +Properly remove deleted files from GitHub pages when generating the documentation.