Skip to content

Create dotnet.yml

Create dotnet.yml #7

Workflow file for this run

name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
deploy-web:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore ChessTourManager.WEB/ChessTourManager.WEB.csproj
- name: Publish
run: dotnet publish -c Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore
- name: 📂 Deploy to FTP server
uses: SamKirkland/[email protected]
with:
server: web-api.somee.com
username: AlexSmith1
password: ${{ secrets.FTP_PASSWORD }}
local-dir: /publish/
server-dir: www.web-api.somee.com/