-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (42 loc) · 1.02 KB
/
CI-Build.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
40
41
42
43
name: CI-Build
on:
workflow_dispatch:
push:
branches: [ "**" ]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
compile-flags: "-c Release"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Test
run: dotnet test MinecraftLaunch/MinecraftLaunch.csproj
test_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Test
run: dotnet build MinecraftLaunch/MinecraftLaunch.csproj
build:
runs-on: ubuntu-latest
needs: [test, test_build]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build
run: dotnet build MinecraftLaunch/MinecraftLaunch.csproj ${{ env.compile-flags }}
- name: Publish
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: MinecraftLaunch/MinecraftLaunch.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}