-
-
Notifications
You must be signed in to change notification settings - Fork 207
35 lines (31 loc) · 1.07 KB
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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 develop/deployment/deployment.sh ${{ secrets.FTP_SERVER }} ${{ secrets.FTP_USERNAME }} "\${{ secrets.FTP_PASSWORD }}" "./Release" "/test_folder" "./*"