Skip to content

Commit f01a7de

Browse files
authored
Add preview close system
1 parent 5abc16f commit f01a7de

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/PR-Closed.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Close PR Preview
2+
3+
on:
4+
pull_request_target:
5+
types: [closed]
6+
7+
jobs:
8+
Close:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
repository: win11bot/preview
15+
16+
- name: Remove Preview folder
17+
run: rm -r ${{ github.event.pull_request.number }}
18+
19+
- name: Deploy to gh-pages
20+
uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
personal_token: ${{ secrets.BOT }}
23+
publish_dir: ./
24+
cname: android-previews.pr.blueedge.me
25+
external_repository: win11bot/android-previews

0 commit comments

Comments
 (0)