diff --git a/.gitignore b/.gitignore index 335ec95..0802dec 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.tar.gz +dist \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 96f60a0..4ed77ab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -83,9 +83,13 @@ package-mod: - apk add --no-cache tar script: - DATE=`date +"%Y-%m-%d"` - - tar zcf /tmp/test_harness_${DATE}_${CI_COMMIT_REF_SLUG}.tar.gz --exclude .luacheckrc --exclude .gitlab-ci.yml --exclude .vscode --exclude .util --exclude client --exclude opengl --exclude \*.tar.gz --exclude .git\* --transform 's,^./,test_harness/,' . + - mkdir -p dist + - TMPDIR="$(mktemp -d)" + - mkdir -p "$TMPDIR/test_harness" + - cp -r . "$TMPDIR/test_harness" + - tar zcf dist/test_harness_${DATE}_${CI_COMMIT_REF_SLUG}.tar.gz -C "$TMPDIR" --exclude test_harness/.luacheckrc --exclude test_harness/.gitlab-ci.yml --exclude test_harness/.vscode --exclude test_harness/.util --exclude test_harness/client --exclude test_harness/opengl --exclude \*.tar.gz --exclude .git\* test_harness artifacts: paths: - - "/tmp/*.tar.gz" + - "dist/*.tar.gz"