-
Notifications
You must be signed in to change notification settings - Fork 464
33 lines (30 loc) · 869 Bytes
/
web-win.yml
File metadata and controls
33 lines (30 loc) · 869 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
name: win-ssh-web
on:
push:
branches:
- master
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: '7.0.100'
- name: npm install
run: npm install
working-directory: src/Presentation/Web/ClientApp
- name: Publish
run: dotnet publish src/Presentation/Web/Web.csproj -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/aspnetcorespa/'
tar_dereference: true
strip_components: 1