BootstrapBlazor3/.github/workflows/deploy.yml
2023-01-31 22:17:08 +08:00

26 lines
538 B
YAML

name: Deploy to Huawei VM
on:
push:
branches:
- master-off
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Sync Huawei Clound VM
uses: appleboy/ssh-action@master
env:
BRANCH_NAME: ${{ env.GITHUB_REF }}
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 22
script: |
cd ~/BootstrapBlazor
git checkout dev
sh ~/deploy-blazor.sh