mirror of
https://github.com/Ellpeck/ExtremelySimpleLogger.git
synced 2024-11-22 01:53:29 +01:00
added wp buildscript
This commit is contained in:
parent
4d5478bcf2
commit
d0972506b5
2 changed files with 17 additions and 31 deletions
17
.woodpecker/main.yml
Normal file
17
.woodpecker/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
steps:
|
||||
build:
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
commands:
|
||||
- dotnet build **/ExtremelySimpleLogger.csproj
|
||||
pack:
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
commands:
|
||||
- find . -type f -name '*.nupkg' -delete
|
||||
- dotnet pack **/ExtremelySimpleLogger.csproj --version-suffix ci.$CI_PIPELINE_NUMBER
|
||||
push:
|
||||
when:
|
||||
- event: [push, manual]
|
||||
branch: main
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
commands:
|
||||
- dotnet nuget push -s https://nuget.ellpeck.de/v3/index.json **/*.nupkg -k $BAGET_KEY -n true
|
31
Jenkinsfile
vendored
31
Jenkinsfile
vendored
|
@ -1,31 +0,0 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'dotnet build **/ExtremelySimpleLogger.csproj'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Pack') {
|
||||
steps {
|
||||
sh 'find . -type f -name \\\'*.nupkg\\\' -delete'
|
||||
sh 'dotnet pack **/ExtremelySimpleLogger.csproj --version-suffix ${BUILD_NUMBER}'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Publish') {
|
||||
when {
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
sh '''dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n true
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
environment {
|
||||
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue