Files
webprewviewapi/.github/workflows/depley.yaml
2026-05-07 08:48:16 -06:00

30 lines
572 B
YAML

name: Deploy
on:
push:
branches:
- main
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: debian
remote_port: 22
- name: school
remote_port: 8822
steps:
- name: Deploy to ${{ matrix.name }}
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.HOST }}
port: ${{ matrix.remote_port }}
username: root
key: ${{ secrets.KEY }}
script: sh /root/WebPreview/backend.sh