build: Iets nettere deploy setup
gitea/double-pendulum/pipeline/head This commit looks good

This commit is contained in:
Philippe Zwietering
2026-09-08 16:45:35 +02:00
parent b05af111ad
commit 9d942b1ea5
Vendored
+10 -1
View File
@@ -6,14 +6,23 @@ pipeline {
sh 'cargo check' sh 'cargo check'
} }
} }
stage('Build') { stage('Build') {
steps { steps {
sh 'wasm-pack build --target web' sh 'wasm-pack build --target web'
archiveArtifacts artifacts: 'pkg/' archiveArtifacts artifacts: 'pkg/'
sh 'cp ./pkg/ /var/www/zwietering.eu/projects/double-pendulum' }
}
stage('Deploy') {
steps {
sh 'rm -r /var/www/zwietering.eu/projects/double-pendulum'
sh 'mkdir /var/www/zwietering.eu/projects/double-pendulum'
sh 'cp -r ./pkg/ /var/www/zwietering.eu/projects/double-pendulum'
} }
} }
} }
post { post {
cleanup { cleanup {
cleanWs() cleanWs()