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