-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (46 loc) · 1.53 KB
/
deploy.yml
File metadata and controls
52 lines (46 loc) · 1.53 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
name: Deploy Extensions CDN
on:
release:
types: [published]
push:
branches: [master]
paths:
- "extensions/*/extension.json"
- "extensions/*/highlights.scm"
- "registry.json"
- "index.json"
- "manifests.json"
workflow_dispatch:
jobs:
deploy:
if: github.repository == 'athasdev/extensions'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Regenerate catalog files
run: |
bun scripts/build-extensions-index.ts
bun scripts/generate-manifests.ts
- name: Sync extension configs to CDN
uses: burnett01/rsync-deployments@7.0.2
with:
switches: -avz --include='*/' --include='*.json' --include='*.scm' --exclude='*'
path: extensions/
remote_path: ${{ secrets.EXTENSIONS_CDN_ROOT }}/
remote_host: ${{ secrets.VPS_HOST }}
remote_user: ${{ secrets.VPS_USER }}
remote_key: ${{ secrets.VPS_SSH_KEY }}
remote_port: ${{ secrets.VPS_PORT || 22 }}
- name: Sync catalog files to CDN
uses: burnett01/rsync-deployments@7.0.2
with:
switches: -avz
path: registry.json index.json manifests.json
remote_path: ${{ secrets.EXTENSIONS_CDN_ROOT }}/
remote_host: ${{ secrets.VPS_HOST }}
remote_user: ${{ secrets.VPS_USER }}
remote_key: ${{ secrets.VPS_SSH_KEY }}
remote_port: ${{ secrets.VPS_PORT || 22 }}