From 38d0d8508d70ba509a798d8a66d83994480b360f Mon Sep 17 00:00:00 2001 From: xiaozhou233 Date: Sun, 9 Aug 2026 13:44:00 +0800 Subject: [PATCH] deploy: sync dist to 1Panel site after build --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ee40281..2401919 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,6 +41,12 @@ pipeline { archiveArtifacts artifacts: 'dist/**', fingerprint: true, allowEmptyArchive: false } } + + stage('Deploy') { + steps { + sh 'sudo /usr/bin/rsync -a --delete dist/ /opt/1panel/www/sites/workstation.xiaozhou233.cn/index/' + } + } } post {