-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (24 loc) · 1002 Bytes
/
HexoSeoAutoPush.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
name: Hexo SEO Auto Push
on:
schedule:
- cron: 0 4 * * *
watch:
types: [started]
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id || github.event_name == 'schedule'
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: latest
- run: |
npm init -y
npm install hexo-seo-autopush
- name: google push
run: npx hexoautopush ${{secrets.google_client_email}} ${{secrets.google_private_key}}
- name: bing push
run: curl -X POST "https://ssl.bing.com/webmaster/api.svc/json/SubmitUrlBatch?apikey=${{secrets.bing_apikey}}" -H "Content-Type:application/json" -H "charset:utf-8" -d @bing.json
- name: baidu push
run: curl -H "Content-Type:text/plain" --data-binary @baidu.txt "http://data.zz.baidu.com/urls?site=https://blog.chatongxue.top&token=${{secrets.baidu_token}}"