Skip to content

Merge pull request #55 from Thomas-Valkenburg/dev #26

Merge pull request #55 from Thomas-Valkenburg/dev

Merge pull request #55 from Thomas-Valkenburg/dev #26

Workflow file for this run

name: Deploy to website on push
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up .NET
uses: actions/[email protected]
with:
dotnet-version: '8.x'
- name: Restore
run: dotnet restore
- name: Build with dotnet
run: dotnet build --configuration Release --no-restore
- name: dotnet publish
run: dotnet publish -c Release -o ./Release --runtime win-x64
- name: FTP Deploy
if: github.ref == 'refs/heads/main'
uses: SamKirkland/[email protected]
with:
server: ${{ vars.SERVER }}
protocol: ftps
port: 21
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
local-dir: ./Release/
server-dir: /domains/grpi528512.luna.fhict.nl/
dangerous-clean-slate: false