Skip to content

更新后端服务地址 #29

更新后端服务地址

更新后端服务地址 #29

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: Install Git
run: |
choco install openssh -y
- name: Upload file via SCP
env:
SERVER_HOST: ${{ secrets.SERVER_HOST }}
run: |
echo "GITHUB_REF: ${{vars.GITHUB_REF}}"
# ssh
# cat package.json
# echo "SERVER_HOST is: $env:SERVER_HOST "
# echo "V_SERVER_HOST: ${{ vars.V_SERVER_HOST }}"
echo "${{ secrets.SSH_PRIVATE_KEY }}" > private_key.ppk
cat private_key.ppk
# ssh -i private_key.ppk root@fsharechat.cn
# echo "login in fsharechat"
# echo "SSHPASS=${{ secrets.SSH_PASSWORD }}" >> $GITHUB_ENV
# scp -o StrictHostKeyChecking=no -P 22 build root@fsharechat.cn:/data/temp-release/windows