Merge pull request #55 from Thomas-Valkenburg/dev #26
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: 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 |