Skip to content

Update deploy.yml

Update deploy.yml #12

Workflow file for this run

name: Upload File to Linux Server
on:
push:
branches:
- master
jobs:
deploy:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Install Git
run: |
choco install git -y
choco install openssh -y
- name: Set up Git Bash
run: |
echo 'export PATH="/usr/bin:$PATH"' >> $GITHUB_ENV
- name: Upload file via SCP
run: |
dir
git version
ssh
ssh root@fsharechat.cn
echo "SSHPASS=${{ secrets.SSH_PASSWORD }}" >> $GITHUB_ENV
scp -o StrictHostKeyChecking=no -P 22 build root@fsharechat.cn:/data/temp-release/windows