diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b448cf4f6eadc3ffa9116eec4dd627198d691b6e..8aa16975387a3cf73f942b7c13fc0a28f4fde08d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,14 +23,15 @@ build: deploy: stage: deploy script: + - TITLE=$(make title) - make - >- curl -f -v -u "$NEXTCLOUD_SHARE:$NEXTCLOUD_PW" - -T title.pdf + -T "$TITLE.pdf" -H 'X-Requested-With: XMLHttpRequest' -H 'X-Method-Override: PUT' - https://portal.idiv.de/nextcloud/public.php/webdav/title.pdf + "https://portal.idiv.de/nextcloud/public.php/webdav/$TITLE.pdf" environment: name: production only: diff --git a/Makefile b/Makefile index aeb9510c31621c6a505e9fe63cbdc8634016f383..533eb73666336c9432d6e349d6baf295536919c1 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# do not use spaces here, instead use either +# - dashes, as in my-awesome-title, or +# - underscores, as in my_awesome_title TITLE = title PANDOC = pandoc @@ -31,6 +34,9 @@ check: spellcheck spellcheck: mdspell --en-us -anrx $(SOURCES_MD) +title: + @echo $(TITLE) + clean: @for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir $@; \ @@ -43,4 +49,5 @@ clean: clean \ default \ subdirs \ + title \ $(SUBDIRS) \