Skip to content

Commit b0dc58f

Browse files
Deploy extensions over SSH
1 parent 3066b1f commit b0dc58f

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/extensions.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
)
4040
4141
deploy:
42-
if: github.repository == 'athasdev/athas' && github.ref == 'refs/heads/master' && github.event_name == 'workflow_dispatch'
42+
if: github.repository == 'athasdev/athas' && github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
4343
needs: validate
4444
runs-on: ubuntu-latest
4545
steps:
@@ -53,6 +53,15 @@ jobs:
5353
run: bun run extensions:prepare
5454

5555
- name: Deploy extensions CDN
56-
env:
57-
EXTENSIONS_CDN_ROOT: ${{ secrets.EXTENSIONS_CDN_ROOT }}
58-
run: bun run extensions:deploy
56+
uses: burnett01/rsync-deployments@7.0.2
57+
with:
58+
switches: -avz
59+
path: extensions/generated/cdn/
60+
remote_path: ${{ secrets.EXTENSIONS_CDN_ROOT }}/
61+
remote_host: ${{ secrets.VPS_HOST }}
62+
remote_user: ${{ secrets.VPS_USER }}
63+
remote_key: ${{ secrets.VPS_SSH_KEY }}
64+
remote_port: ${{ secrets.VPS_PORT || 22 }}
65+
66+
- name: Verify installable packages on CDN
67+
run: bun run extensions:verify-cdn

0 commit comments

Comments
 (0)