-
-
Notifications
You must be signed in to change notification settings - Fork 496
27 lines (25 loc) · 1.29 KB
/
nuget.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
name: Build NuGet Package
run-name: ${{ vars.DEVVERSION }}${{ github.event_name != 'workflow_dispatch' && format('-ci.{0}', github.run_number) || '' }} | ${{ github.event_name != 'workflow_dispatch' && (github.event.head_commit.message || format('`[PR]` {0}', github.event.pull_request.title)) || 'Manual Build' }}
on:
push:
branches: [ master, alpha-development, v0.6.0-rewrite ]
pull_request:
branches: [ master, alpha-development, v0.6.0-rewrite ]
workflow_dispatch:
jobs:
build_nuget_package:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 7.0.x
- name: .NET Pack
run: dotnet pack -c Release ${{ github.event_name != 'workflow_dispatch' && format('-p:Version="{0}-ci.{1}" -p:AssemblyVersion="{0}.{1}"', vars.DEVVERSION, github.run_number) || format('-p:Version="{0}"', vars.DEVVERSION) }}
working-directory: ./MelonLoader/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: MelonLoaderNuGetPackage
path: MelonLoader/Output/Release/MelonLoader/LavaGang.MelonLoader.${{ vars.DEVVERSION }}${{ github.event_name != 'workflow_dispatch' && format('-ci.{0}', github.run_number) || '' }}.nupkg