forked from ningen2605/extensions-generic
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 754 Bytes
/
deletion.yml
File metadata and controls
32 lines (28 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Clean up published sources for deleted branch
on:
delete:
branches:
- '**'
- '!main'
jobs:
delete:
if: github.event.ref_type == 'branch'
runs-on: ubuntu-latest
steps:
- name: Clean up
run: |
echo "Clean up for branch ${{ github.event.ref }}"
- name: Checkout Branch
uses: actions/checkout@v2
- name: Checkout existing bundles
uses: actions/checkout@v2
continue-on-error: true
with:
ref: gh-pages
path: bundles
- run: rm -rf bundles/${{ github.event.ref }}
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: bundles