From f2b1f0fa63e6cad49ecc001e8c24cc3f22ca289f Mon Sep 17 00:00:00 2001
From: dgelessus <dgelessus@users.noreply.github.com>
Date: Tue, 16 May 2023 16:50:00 +0200
Subject: [PATCH] Remove unnecessary copy of built repository

---
 .gitlab-ci.yml |  5 ++---
 build.gradle   | 12 ------------
 2 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e7f1035a..50e157cb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,10 +12,9 @@ build:
     - ./gradlew downloadCli
     - ./gradlew collectDependencies
     - mvn -f de.prob.parent/pom.xml install
-    - ./gradlew collectArtifacts
   artifacts:
     paths:
-      - updatesite
+      - de.prob.repository/target/repository
 
 deploy:
   stage: deploy
@@ -26,4 +25,4 @@ deploy:
     - apk update
     - apk add lftp openssh-client
   script:
-    - LFTP_PASSWORD="${DEPLOY_PASSWORD}" lftp -c "set cmd:fail-exit true; set sftp:auto-confirm true; open --user ${DEPLOY_USERNAME} --env-password sftp://${DEPLOY_HOST}/${DEPLOY_REMOTE_BASEDIR}/rodin/prob1/nightly/; mirror -vvv -R updatesite ."
+    - LFTP_PASSWORD="${DEPLOY_PASSWORD}" lftp -c "set cmd:fail-exit true; set sftp:auto-confirm true; open --user ${DEPLOY_USERNAME} --env-password sftp://${DEPLOY_HOST}/${DEPLOY_REMOTE_BASEDIR}/rodin/prob1/nightly/; put -e index.html; mirror -vvv -R de.prob.repository/target/repository ."
diff --git a/build.gradle b/build.gradle
index e3c6db13..83eb0711 100644
--- a/build.gradle
+++ b/build.gradle
@@ -89,15 +89,3 @@ task downloadCli {
 
 completeInstall.dependsOn downloadCli
 completeInstall.dependsOn subprojects.setClassPath
-
-task deleteOldArtifacts(type: Delete) {
-	String updateSite = workspacePath + 'updatesite'
-	delete updateSite
-}
-
-task collectArtifacts(type: Copy) {
-	from workspacePath + groupID + '.repository/target/repository/'
-	into workspacePath + 'updatesite'
-	from workspacePath + "index.html"
-	into workspacePath + 'updatesite'
-}
-- 
GitLab