-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (36 loc) · 1.18 KB
/
sync.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
38
39
40
41
42
43
name: Docset Sync
on:
push:
branches: [main]
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
sync-dash:
name: Sync Dash Docsets
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Clone Dash Repositories
run: |
git clone https://github.com/Kapeli/feeds.git build/feeds
git clone https://github.com/Kapeli/Dash-X-Platform-Resources.git build/resources
- name: Execute
run: |
sudo apt-get -y -qq --no-install-recommends install python3-png
./process_dash_feeds.py \
--manifest=docsets.json \
--blacklist=blacklist.json \
--resource-dir=build/resources \
build/feeds \
public/_api/v1/docsets.json
- name: Deploy to Vercel
run: |
npm install --global vercel pnpm
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}