fix actions

This commit is contained in:
2026-05-07 08:45:59 -06:00
parent 19c26dc5b7
commit 31671d8006

View File

@@ -1,23 +1,29 @@
# name: Deploy
name: Deploy
# on:
# push:
# branches:
# - main
on:
push:
branches:
- yuetsh
# jobs:
# deploy-and-run:
# runs-on: ubuntu-latest
permissions:
contents: read
# steps:
# - uses: actions/checkout@v4
# - uses: appleboy/ssh-action@v1.2.1
# with:
# host: ${{ secrets.HOST }}
# username: root
# key: ${{ secrets.KEY }}
# script: |
# cd ~/WebPreview/api
# git pull
# sh ~/WebPreview/run.sh
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