-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 838 Bytes
/
win-live.yml
File metadata and controls
36 lines (31 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#SSH_SERVER = IP OR DNS name
#SSH_USER = asad or whatever linux user is
#SSH_KEY = private ssh key
name: win-ssh
on:
push:
branches:
- main
jobs:
build-test-publish-ftp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100'
- name: Publish
run: dotnet publish -c Release -o publish
- name: Deploy
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.SSH_SERVER }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 2222
source: publish/*
target: '/c/inetpub/wwwroot/dotnetweb2/'
tar_dereference: true
strip_components: 1
rm: true