chore(ci): update build process artifact path

Reworked the build script to enhance artifact handling. Created a 'dist' directory, storing generated artifacts. Modified paths for cleaner output organization.
This commit is contained in:
Yves-Marie Haussonne 2024-10-02 13:05:49 +02:00
parent cb66508e19
commit 0471a4b706
2 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.tar.gz
dist

View File

@ -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"