forked from 9channel/dd-danmaku
-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (37 loc) · 876 Bytes
/
DEPLOY.yml
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
33
34
35
36
37
name: DEPLOY
on:
pull_request:
branches:
- jellyfin
paths:
- "ede.js"
push:
branches:
- jellyfin
paths:
- "ede.js"
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/jellyfin'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Pack
run: |
rm -rf public
mkdir -p public
cp ede.js public/ede.user.js
- name: Deploy github pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
keep_files: true
- name: Purge CDN cache
run: |
curl https://purge.jsdelivr.net/gh/Izumiko/jellyfin-danmaku@jellyfin/ede.js
curl https://purge.jsdelivr.net/gh/Izumiko/jellyfin-danmaku@gh-pages/ede.user.js