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:
parent
cb66508e19
commit
0471a4b706
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
*.tar.gz
|
*.tar.gz
|
||||||
|
dist
|
@ -83,9 +83,13 @@ package-mod:
|
|||||||
- apk add --no-cache tar
|
- apk add --no-cache tar
|
||||||
script:
|
script:
|
||||||
- DATE=`date +"%Y-%m-%d"`
|
- 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:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- "/tmp/*.tar.gz"
|
- "dist/*.tar.gz"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user