Update dotnet.yml #13
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: .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 | |
env: | |
ConnectionStrings__DefaultConnection: ${{ secrets.CONN_STR }} | |
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/ | |
timeout: 120000 |