Skip to content

strip components

strip components #7

Workflow file for this run

#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: Build
run: dotnet build -c Release
- name: Publish
run: dotnet publish -c Release -o publish
- name: Deploy
uses: appleboy/[email protected]
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