-
-
Notifications
You must be signed in to change notification settings - Fork 207
39 lines (35 loc) · 1.11 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
36
37
38
39
# 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
- shell: bash
run: bash develop/deployment/deployment.sh "./Release" "/test_folder" "./*"
env:
HOST: ${{ secrets.FTP_SERVER }}
USERNAME: ${{ secrets.FTP_USERNAME }}
PASSWORD: ${{ secrets.FTP_PASSWORD }}