From be86a21f1f086dec5343651557ebd6b35615de58 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 21 Sep 2021 11:53:28 -0400 Subject: [PATCH 1/4] Clear our destination directories before copying files to GitHub pages. --- .github/workflows/docs.yaml | 1 - 1 file changed, 1 deletion(-) 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 }} From 7eb315ae070a498789f500ed9138d1f8c230a8c1 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 21 Sep 2021 11:55:01 -0400 Subject: [PATCH 2/4] Newsfragment --- changelog.d/10869.docs | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/10869.docs diff --git a/changelog.d/10869.docs b/changelog.d/10869.docs new file mode 100644 index 000000000000..21ec35f8923e --- /dev/null +++ b/changelog.d/10869.docs @@ -0,0 +1 @@ +Properly remove stale files from GitHub pages. From 89b2aad9e2c07b87d93025c8318ff21a2b72a5fd Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 21 Sep 2021 12:00:01 -0400 Subject: [PATCH 3/4] Fix changelog. Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> --- changelog.d/10869.docs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/10869.docs b/changelog.d/10869.docs index 21ec35f8923e..c117386072c3 100644 --- a/changelog.d/10869.docs +++ b/changelog.d/10869.docs @@ -1 +1 @@ -Properly remove stale files from GitHub pages. +Properly remove deleted files from GitHub pages when generating the documentation. From b3c35cab78a8366397ce905150fe4e7b17517b54 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 21 Sep 2021 12:06:50 -0400 Subject: [PATCH 4/4] Fix changelog extension. --- changelog.d/{10869.docs => 10869.doc} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename changelog.d/{10869.docs => 10869.doc} (100%) diff --git a/changelog.d/10869.docs b/changelog.d/10869.doc similarity index 100% rename from changelog.d/10869.docs rename to changelog.d/10869.doc