refs TG-4: added autoReleaswe

This commit is contained in:
2026-05-03 10:47:47 +03:00
parent 79352e5e89
commit a20c251fb0
Vendored
+26
View File
@@ -39,6 +39,32 @@ pipeline {
archiveArtifacts artifacts: 'dist/windows/**', fingerprint: true archiveArtifacts artifacts: 'dist/windows/**', fingerprint: true
} }
} }
stage('Upload Artifacts to Gitea') {
steps {
script {
def releaseUrl = "https://git.grigowashere.ru/api/v1/repos/username/repo/releases"
def json = """{
"tag_name": "v${BUILD_NUMBER}",
"target_commitish": "main",
"name": "Release v${BUILD_NUMBER}",
"body": "Release notes for v${BUILD_NUMBER}",
"draft": false,
"prerelease": false
}"""
sh "curl -X POST ${releaseUrl} -H 'Authorization: token ${GITEA_TOKEN}' -d '${json}'"
}
}
}
stage('Upload Artifacts to Gitea Release') {
steps {
script {
def releaseUploadUrl = "https://git.grigowashere.ru/api/v1/repos/username/repo/releases/tags/v${BUILD_NUMBER}/assets"
sh "curl -X POST ${releaseUploadUrl} -H 'Authorization: token ${GITEA_TOKEN}' -F 'file=@dist/windows/test_app.exe'"
}
}
}
} }
post { post {