diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 651d54ade..47615f67f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,14 +3,13 @@ image: maven:3-jdk-14 release: stage: build script: - - "ls /usr/bin/" -# - "mvn -e package" -# - "ls target" -# - "unzip -d target/release target/kickc-release.zip" -# - "mv target/release/kickc/jar/kickc-release.jar target/release/kickc/jar/kickc-${CI_COMMIT_REF_NAME}.jar" -# - "mkdir ./kickc" -# - "mv target/release/kickc/* ./kickc/" -# - "cat target/site/jacoco/index.html" + - "mvn -e package -DskipTests" + - "ls target" + - "gunzip -d target/release target/kickc-release.gz" + - "mv target/release/kickc/jar/kickc-release.jar target/release/kickc/jar/kickc-${CI_COMMIT_REF_NAME}.jar" + - "mkdir ./kickc" + - "mv target/release/kickc/* ./kickc/" + - "cat target/site/jacoco/index.html" artifacts: name: kickc_${CI_COMMIT_REF_NAME} paths: diff --git a/src/main/assembly/assembly.xml b/src/main/assembly/assembly.xml index 3ae36b60f..5ca6a40a2 100644 --- a/src/main/assembly/assembly.xml +++ b/src/main/assembly/assembly.xml @@ -2,6 +2,7 @@ release zip + gz