From d9e3aa6ac47496e94d581b7e1cc75078e9a9b795 Mon Sep 17 00:00:00 2001 From: pathmapper <20856381+pathmapper@users.noreply.github.com> Date: Sun, 31 May 2020 21:41:02 +0200 Subject: [PATCH] Update for use in the editor ci workflow --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3c125ec7..113d93c6 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,8 @@ editor/create_folder: dependencies mkdir -p editor editor/pull_release: editor/create_folder - cd editor && rm -rf public && curl -L https://github.com/maputnik/editor/releases/download/$(EDITOR_VERSION)/public.zip --output public.zip && unzip public.zip && rm public.zip + # if the directory /home/runner/work/editor/editor/build/build exists, we assume that we are are running the makefile within the editor ci workflow + test -d /home/runner/work/editor/editor/build/build && echo "exists" && cd editor && cp -R /home/runner/work/editor/editor/build/build public/ || (echo "does not exist" && cd editor && rm -rf public && curl -L https://github.com/maputnik/editor/releases/download/$(EDITOR_VERSION)/public.zip --output public.zip && unzip public.zip && rm public.zip) bindata_assetfs.go: editor/pull_release go-bindata-assetfs --prefix "editor/" editor/public/...