We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048bf05 commit 37e1b46Copy full SHA for 37e1b46
.github/workflows/DocCleanup.yml
@@ -0,0 +1,28 @@
1
+name: Doc Preview Cleanup
2
+
3
+on:
4
+ pull_request:
5
+ types: [closed]
6
7
+jobs:
8
+ doc-preview-cleanup:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout gh-pages branch
12
+ uses: actions/checkout@v2
13
+ with:
14
+ ref: gh-pages
15
16
+ - name: Delete preview and history
17
+ run: |
18
+ git config user.name "Documenter.jl"
19
+ git config user.email "documenter@juliadocs.github.io"
20
+ git rm -rf "previews/PR$PRNUM"
21
+ git commit -m "delete preview"
22
+ git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
23
+ env:
24
+ PRNUM: ${{ github.event.number }}
25
26
+ - name: Push changes
27
28
+ git push --force origin gh-pages-new:gh-pages
0 commit comments