mirror of
https://github.com/Ellpeck/DynamicEnums.git
synced 2024-11-27 18:58:33 +01:00
Compare commits
4 commits
94b6304d52
...
88c75a2464
Author | SHA1 | Date | |
---|---|---|---|
88c75a2464 | |||
f56424cbf9 | |||
bfa5641849 | |||
443c03b024 |
6 changed files with 62 additions and 77 deletions
20
.woodpecker/main.yml
Normal file
20
.woodpecker/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
variables:
|
||||||
|
- &image mcr.microsoft.com/dotnet/sdk:8.0-jammy
|
||||||
|
steps:
|
||||||
|
build:
|
||||||
|
image: *image
|
||||||
|
commands: dotnet build
|
||||||
|
test:
|
||||||
|
image: *image
|
||||||
|
commands: dotnet test --collect:"XPlat Code Coverage"
|
||||||
|
pack:
|
||||||
|
image: *image
|
||||||
|
commands: dotnet pack --version-suffix ci.$CI_PIPELINE_NUMBER
|
||||||
|
publish:
|
||||||
|
image: *image
|
||||||
|
when:
|
||||||
|
branch: main
|
||||||
|
event: push
|
||||||
|
commands: dotnet nuget push -s https://nuget.ellpeck.de/v3/index.json **/*.nupkg -k $BAGET_KEY -n
|
||||||
|
secrets:
|
||||||
|
- baget_key
|
|
@ -1,8 +1,8 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net452;netstandard2.0;net6.0</TargetFrameworks>
|
<TargetFrameworks>net452;netstandard2.0;net8.0</TargetFrameworks>
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
<IsTrimmable>true</IsTrimmable>
|
<IsAotCompatible Condition="'$(TargetFramework)'=='net8.0'">true</IsAotCompatible>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
<RepositoryUrl>https://github.com/Ellpeck/DynamicEnums</RepositoryUrl>
|
<RepositoryUrl>https://github.com/Ellpeck/DynamicEnums</RepositoryUrl>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
<VersionPrefix>1.0.1</VersionPrefix>
|
<VersionPrefix>1.1.0</VersionPrefix>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
35
Jenkinsfile
vendored
35
Jenkinsfile
vendored
|
@ -1,35 +0,0 @@
|
||||||
pipeline {
|
|
||||||
agent any
|
|
||||||
stages {
|
|
||||||
stage('Test') {
|
|
||||||
steps {
|
|
||||||
sh 'dotnet test --collect:"XPlat Code Coverage"'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Pack') {
|
|
||||||
steps {
|
|
||||||
sh 'find . -type f -name "*.nupkg" -delete'
|
|
||||||
sh 'dotnet pack --version-suffix ${BUILD_NUMBER}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Publish') {
|
|
||||||
when {
|
|
||||||
branch 'main'
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'dotnet nuget push -s https://nuget.ellpeck.de/v3/index.json **/*.nupkg -k $BAGET -n'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
nunit testResultsPattern: '**/TestResults.xml'
|
|
||||||
cobertura coberturaReportFile: '**/coverage.cobertura.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
environment {
|
|
||||||
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<VSTestLogger>nunit</VSTestLogger>
|
<VSTestLogger>nunit</VSTestLogger>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
Loading…
Reference in a new issue