Skip to content

Update dotnet.yml

Update dotnet.yml #20

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: Add connection string
run: set ASPNETCORE_ConnectionStrings__DefaultConnection="${{ secrets.CONN_STR }}"
- name: Set Dev env
run: set ASPNETCORE_ENVIRONMENT=Development
- name: Publish
run: dotnet publish -c Debug --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore
- name: 📂 Deploy to FTP server
uses: SamKirkland/[email protected]
with:
server: chesstourmanager.somee.com
username: AlexSmith1
password: ${{ secrets.FTP_PASSWORD }}
local-dir: /publish/
server-dir: www.chesstourmanager.somee.com/
timeout: 120000