Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dotnet.yml #31

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
12 changes: 8 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ jobs:
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 Release --output /publish/ ChessTourManager.WEB/ChessTourManager.WEB.csproj --no-restore
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: win6055.site4now.net
username: chesstourmanager-001
server: chesstourmanager.somee.com
username: AlexSmith1
password: ${{ secrets.FTP_PASSWORD }}
local-dir: /publish/
server-dir: chess-tour-manager/
server-dir: www.chesstourmanager.somee.com/
timeout: 120000
Loading