add deploy.yaml
All checks were successful
Print Contents / print-content (push) Successful in 2s
Deploy / build-and-deploy (push) Successful in 28s

This commit is contained in:
juancwu 2026-01-07 21:23:47 -05:00
commit 97371412a0

View file

@ -0,0 +1,21 @@
name: Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-full-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
run: task build
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/key
chmod 600 ~/.ssh/key
- name: Deploy
run: |
scp -o StrictHostKeyChecking=no -i ~/.ssh/key -r ./dist/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.DATA_PATH }}