Skip to content

Update dotnet.yml

Update dotnet.yml #37

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "feature/github_actions" ]
pull_request:
branches: [ "feature/github_actions" ]
jobs:
build:
runs-on: windows-latest
name: Build & Publish
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: 'develop'
submodules: recursive
- name: Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
submodules: recursive
- name: Restore
run: dotnet restore develop/Mixcore.sln
- name: Build
run: dotnet build develop/Mixcore.sln --no-restore
- name: Publish
run: dotnet publish develop/src/applications/Mixcore/Mixcore.csproj -c Release --output ./Release --no-restore
- name: Run deployment script
run: bash ${GITHUB_WORKSPACE}/deployment/deployment.sh ${{ secrets.FTP_SERVER }} ${{ secrets.FTP_USERNAME }} ${{ secrets.FTP_PASSWORD }} "./Release" "/test_folder" "./*"