1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

Create shared_library_nuget.yml

Create initial github action for Shared Library nuget package
This commit is contained in:
RaidMax
2024-06-25 21:19:35 -05:00
committed by GitHub
parent a0d25f1109
commit 32c29fb006

View File

@ -0,0 +1,40 @@
name: Build and Pack SharedLibraryCore Nuget
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build_pack:
runs-on: ubuntu-latest
env:
buildPlatform: 'Any CPU'
outputFolder: '${{github.workspace}}/Publish/${{env.buildConfiguration}}'
releaseType: 'verified'
buildConfiguration: 'Release'
isPreRelease: 'false'
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build Data
run: dotnet build **/Data.csproj -c ${{env.buildConfiguration}} --no-restore
- name: Build SLC
run: dotnet build **/SharedLibraryCore.csproj -c ${{env.buildConfiguration}} /p:Version=${{github.run_number}} --no-restore
- name: Pack SLC
run: dotnet pack **/SharedLibraryCore.csproj -c ${{env.buildConfiguration}} --version-suffix ${{github.run_number}}
- name: Publish nuget package artifact
uses: actions/upload-artifact@v3
with:
name: SharedLibraryCore.${{github.run_number}}.nupkg
path: '**/RaidMax.IW4MAdmin.SharedLibraryCore.${{github.run_number}}.nupkg'