mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-08 06:08:20 -05:00
Add nuget package pipeline
This commit is contained in:
parent
6f5d638a1e
commit
82d89b9dd0
@ -5,6 +5,7 @@
|
|||||||
<Configurations>Debug;Release;Prerelease</Configurations>
|
<Configurations>Debug;Release;Prerelease</Configurations>
|
||||||
<Platforms>AnyCPU</Platforms>
|
<Platforms>AnyCPU</Platforms>
|
||||||
<Title>RaidMax.IW4MAdmin.Data</Title>
|
<Title>RaidMax.IW4MAdmin.Data</Title>
|
||||||
|
<Version>1.0.0.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -7,6 +7,10 @@ trigger:
|
|||||||
- release/pre
|
- release/pre
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
paths:
|
||||||
|
exclude:
|
||||||
|
- '**/*.yml'
|
||||||
|
- '*.yml'
|
||||||
|
|
||||||
pr: none
|
pr: none
|
||||||
|
|
||||||
|
65
DeploymentFiles/nuget-pipeline.yml
Normal file
65
DeploymentFiles/nuget-pipeline.yml
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
name: '$(Date:yyyy.M.d)$(Rev:.r)'
|
||||||
|
|
||||||
|
pr: none
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: 'windows-2022'
|
||||||
|
|
||||||
|
variables:
|
||||||
|
buildPlatform: 'Any CPU'
|
||||||
|
outputFolder: '$(Build.ArtifactStagingDirectory)\Publish\$(buildConfiguration)'
|
||||||
|
releaseType: verified
|
||||||
|
buildConfiguration: Stable
|
||||||
|
isPreRelease: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job: Build_Pack
|
||||||
|
steps:
|
||||||
|
- task: UseDotNet@2
|
||||||
|
displayName: 'Install .NET Core 6 SDK'
|
||||||
|
inputs:
|
||||||
|
packageType: 'sdk'
|
||||||
|
version: '6.0.x'
|
||||||
|
includePreviewVersions: true
|
||||||
|
|
||||||
|
- task: NuGetToolInstaller@1
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: 'Setup Build configuration'
|
||||||
|
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/release/pre'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))
|
||||||
|
inputs:
|
||||||
|
targetType: 'inline'
|
||||||
|
script: |
|
||||||
|
echo '##vso[task.setvariable variable=releaseType]prerelease'
|
||||||
|
echo '##vso[task.setvariable variable=buildConfiguration]Prerelease'
|
||||||
|
echo '##vso[task.setvariable variable=isPreRelease]true'
|
||||||
|
failOnStderr: true
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'Build Data'
|
||||||
|
inputs:
|
||||||
|
command: 'build'
|
||||||
|
projects: '**/Data.csproj'
|
||||||
|
arguments: '-c $(buildConfiguration)'
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'Build SLC'
|
||||||
|
inputs:
|
||||||
|
command: 'build'
|
||||||
|
projects: '**/SharedLibraryCore.csproj'
|
||||||
|
arguments: '-c $(buildConfiguration) /p:Version=$(Build.BuildNumber)'
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'Pack SLC'
|
||||||
|
inputs:
|
||||||
|
command: 'pack'
|
||||||
|
packagesToPack: '**/SharedLibraryCore.csproj'
|
||||||
|
nobuild: true
|
||||||
|
versioningScheme: 'byBuildNumber'
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@1
|
||||||
|
displayName: 'Publish nuget package artifact'
|
||||||
|
inputs:
|
||||||
|
targetPath: '$(Build.Repository.LocalPath)/SharedLibraryCore/bin/$(buildConfiguration)/RaidMax.IW4MAdmin.SharedLibraryCore.$(Build.BuildNumber).nupkg'
|
||||||
|
artifact: 'SharedLibraryCore.$(Build.BuildNumber).nupkg'
|
||||||
|
publishLocation: 'pipeline'
|
@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||||||
version.txt = version.txt
|
version.txt = version.txt
|
||||||
DeploymentFiles\UpdateIW4MAdmin.ps1 = DeploymentFiles\UpdateIW4MAdmin.ps1
|
DeploymentFiles\UpdateIW4MAdmin.ps1 = DeploymentFiles\UpdateIW4MAdmin.ps1
|
||||||
DeploymentFiles\UpdateIW4MAdmin.sh = DeploymentFiles\UpdateIW4MAdmin.sh
|
DeploymentFiles\UpdateIW4MAdmin.sh = DeploymentFiles\UpdateIW4MAdmin.sh
|
||||||
|
DeploymentFiles\nuget-pipeline.yml = DeploymentFiles\nuget-pipeline.yml
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharedLibraryCore", "SharedLibraryCore\SharedLibraryCore.csproj", "{AA0541A2-8D51-4AD9-B0AC-3D1F5B162481}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharedLibraryCore", "SharedLibraryCore\SharedLibraryCore.csproj", "{AA0541A2-8D51-4AD9-B0AC-3D1F5B162481}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user