Skip to content

Commit

Permalink
Enable previews of docs builds (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Apr 28, 2021
1 parent 70b925d commit 2bd197d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/delete-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Delete preview deployment

on:
pull_request:
types: [ closed ]
jobs:
delete-preview:
name: Delete preview deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: gh-pages
- run: rm -rf previews/PR${{ github.event.number }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Delete preview of PR#${{ github.event.number }}'
branch: gh-pages
1 change: 1 addition & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ deploydocs(
target = "build",
deps = nothing,
make = nothing,
push_preview = true,
)

0 comments on commit 2bd197d

Please sign in to comment.