Skip to content

Commit

Permalink
Merge pull request #30 from AleksanderNekr/actions
Browse files Browse the repository at this point in the history
Create dotnet.yml
  • Loading branch information
AleksanderNekr authored Oct 5, 2023
2 parents e229402 + 6e5cb1b commit b64d117
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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: win6055.site4now.net
username: chesstourmanager-001
password: ${{ secrets.FTP_PASSWORD }}
local-dir: /publish/
server-dir: chess-tour-manager/
timeout: 120000

0 comments on commit b64d117

Please sign in to comment.