diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml new file mode 100644 index 0000000..379991a --- /dev/null +++ b/.woodpecker/main.yml @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 28a0e6f..0000000 --- a/Jenkinsfile +++ /dev/null @@ -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') - } -} \ No newline at end of file