npm install for web #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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 | |
rm: true |