From 4fb3fc735ec923d3d2037340927c2702064493bb Mon Sep 17 00:00:00 2001 From: Joel Collins <2579603-jtc42@users.noreply.gitlab.com> Date: Fri, 18 Sep 2020 14:09:10 +0000 Subject: [PATCH] Move into dist before hashing --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85fbd302..044c1094 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,8 @@ build: # Build distribution archive - mkdir -p dist - tar -c --exclude-vcs --exclude-from .tarignore -vzf dist/openflexure-microscope-server-${CI_COMMIT_REF_NAME}.tar.gz . - - sha256sum dist/openflexure-microscope-server-${CI_COMMIT_REF_NAME}.tar.gz > dist/openflexure-microscope-server-${CI_COMMIT_REF_NAME}.tar.gz.sha256 + - cd dist/ + - sha256sum openflexure-microscope-server-${CI_COMMIT_REF_NAME}.tar.gz > openflexure-microscope-server-${CI_COMMIT_REF_NAME}.tar.gz.sha256 artifacts: name: "dist"