mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-09 23:00:57 -05:00
Create shared_library_nuget.yml
Create initial github action for Shared Library nuget package
This commit is contained in:
40
.github/workflows/shared_library_nuget.yml
vendored
Normal file
40
.github/workflows/shared_library_nuget.yml
vendored
Normal 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'
|
Reference in New Issue
Block a user