Repository navigation
95 lines (88 loc) · 4.7 KB
/
Copy pathcorn.yml
File metadata and controls
95 lines (88 loc) · 4.7 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: cron
on:
schedule:
- cron: '0 21 * * *'
push:
branches:
- master
workflow_dispatch:
jobs:
download:
if: github.repository == 'MHG-LAB/cron'
runs-on: Ubuntu-latest
steps:
- name: Download
env:
HEAD: ${{ secrets.HEAD }}
run: |
mkdir ./bing
cd ./bing
curl -H "$HEAD" https://api.mhuig.top/bing?day=0 -o bing.jpg
curl -H "$HEAD" https://api.mhuig.top/bing?day=1 -o 1.jpg
curl -H "$HEAD" https://api.mhuig.top/bing?day=2 -o 2.jpg
curl -H "$HEAD" https://api.mhuig.top/bing?day=3 -o 3.jpg
curl -H "$HEAD" https://api.mhuig.top/bing?day=4 -o 4.jpg
curl -H "$HEAD" https://api.mhuig.top/bing?day=5 -o 5.jpg
curl -H "$HEAD" https://api.mhuig.top/bing?day=6 -o 6.jpg
curl -H "$HEAD" https://api.mhuig.top/bing?day=7 -o 7.jpg
curl -H "$HEAD" https://api.mhuig.top/bingcopyright/w?day=0 -o bing.js
curl -H "$HEAD" https://api.mhuig.top/bingcopyright/w?day=1 -o 1.js
curl -H "$HEAD" https://api.mhuig.top/bingcopyright/w?day=2 -o 2.js
curl -H "$HEAD" https://api.mhuig.top/bingcopyright/w?day=3 -o 3.js
curl -H "$HEAD" https://api.mhuig.top/bingcopyright/w?day=4 -o 4.js
curl -H "$HEAD" https://api.mhuig.top/bingcopyright/w?day=5 -o 5.js
curl -H "$HEAD" https://api.mhuig.top/bingcopyright/w?day=6 -o 6.js
curl -H "$HEAD" https://api.mhuig.top/bingcopyright/w?day=7 -o 7.js
curl -H "$HEAD" https://api.mhuig.top/binginfo?day=0 -o bing.json
curl -H "$HEAD" https://api.mhuig.top/binginfo?day=1 -o 1.json
curl -H "$HEAD" https://api.mhuig.top/binginfo?day=2 -o 2.json
curl -H "$HEAD" https://api.mhuig.top/binginfo?day=3 -o 3.json
curl -H "$HEAD" https://api.mhuig.top/binginfo?day=4 -o 4.json
curl -H "$HEAD" https://api.mhuig.top/binginfo?day=5 -o 5.json
curl -H "$HEAD" https://api.mhuig.top/binginfo?day=6 -o 6.json
curl -H "$HEAD" https://api.mhuig.top/binginfo?day=7 -o 7.json
cd ..
mkdir ./soul
cd ./soul
curl -H "$HEAD" https://api.mhuig.top/soul -o soul.json
curl -H "$HEAD" https://api.mhuig.top/soul/w -o soul.js
cd ..
mkdir ./hitokoto
cd ./hitokoto
curl -H "$HEAD" https://api.mhuig.top/hitokoto -o hitokoto.json
curl -H "$HEAD" https://api.mhuig.top/hitokoto/w -o hitokoto.js
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
- name: Purge
run: |
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/bing.jpg
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/1.jpg
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/2.jpg
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/3.jpg
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/4.jpg
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/5.jpg
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/6.jpg
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/7.jpg
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/bing.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/1.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/2.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/3.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/4.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/5.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/6.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/7.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/bing.json
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/1.json
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/2.json
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/3.json
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/4.json
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/5.json
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/6.json
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/7.json
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/soul/soul.json
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/soul/soul.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/hitokoto/hitokoto.js
curl https://purge.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/hitokoto/hitokoto.js