diff --git a/Jenkinsfile b/Jenkinsfile
index b07efeb..96a14ef 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -36,7 +36,9 @@ pipeline {
stage('packing') {
steps {
- sh "dotnet pack ${env.WORKSPACE}/src/PiwigoDotnet.sln --no-restore -c Release -o ${env.WORKSPACE}/publish -p:Version=${env.PWDNVERSION}.${env.BUILD_NUMBER}"
+ sh "dotnet pack ${env.WORKSPACE}/src/PiwigoDotnet.sln --no-restore -c Release -o ${env.WORKSPACE}/publish/nuget -p:Version=${env.PWDNVERSION}.${env.BUILD_NUMBER}"
+ sh "dotnet publish ${env.WORKSPACE}/src/Piwigo.Client.Cli/Piwigo.Client.Cli.csproj -c Release --self-contained true -r linux-x64 -o ${env.WORKSPACE}/publish/cli-linux -p:Version=${env.APPVERSION}.${env.BUILD_NUMBER}"
+ sh "dotnet publish ${env.WORKSPACE}/src/Piwigo.Client.Cli/Piwigo.Client.Cli.csproj -c Release --self-contained true -r win-x64 -o ${env.WORKSPACE}/publish/cli-win -p:Version=${env.APPVERSION}.${env.BUILD_NUMBER}"
}
}
@@ -44,7 +46,7 @@ pipeline {
// we only publish packages for the main branch
when { branch 'main' }
steps {
- sh "dotnet nuget push --source gitea ${env.WORKSPACE}/publish/*.nupkg"
+ sh "dotnet nuget push --source gitea ${env.WORKSPACE}/publish/nuget/*.nupkg"
}
}
@@ -52,7 +54,7 @@ pipeline {
post {
always {
- archiveArtifacts artifacts: "publish/*.nupkg", onlyIfSuccessful: true
+ archiveArtifacts artifacts: "publish/**/*", onlyIfSuccessful: true
}
}
}
diff --git a/src/Piwigo.Client.Cli/Piwigo.Client.Cli.csproj b/src/Piwigo.Client.Cli/Piwigo.Client.Cli.csproj
index 6be7118..3f07897 100644
--- a/src/Piwigo.Client.Cli/Piwigo.Client.Cli.csproj
+++ b/src/Piwigo.Client.Cli/Piwigo.Client.Cli.csproj
@@ -6,6 +6,8 @@
enable
enable
false
+ false
+ true