mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-04 04:59:38 +08:00
26 lines
538 B
YAML
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
|