fix actions
This commit is contained in:
46
.github/workflows/depley.yaml
vendored
46
.github/workflows/depley.yaml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user