Skip to content
Snippets Groups Projects
Verified Commit fd79359c authored by ck85nori's avatar ck85nori :railway_track:
Browse files

adds title target

parent b6b49d5a
No related branches found
No related tags found
No related merge requests found
Pipeline #459 passed
...@@ -23,14 +23,15 @@ build: ...@@ -23,14 +23,15 @@ build:
deploy: deploy:
stage: deploy stage: deploy
script: script:
- TITLE=$(make title)
- make - make
- >- - >-
curl -f -v curl -f -v
-u "$NEXTCLOUD_SHARE:$NEXTCLOUD_PW" -u "$NEXTCLOUD_SHARE:$NEXTCLOUD_PW"
-T title.pdf -T "$TITLE.pdf"
-H 'X-Requested-With: XMLHttpRequest' -H 'X-Requested-With: XMLHttpRequest'
-H 'X-Method-Override: PUT' -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: environment:
name: production name: production
only: only:
......
# do not use spaces here, instead use either
# - dashes, as in my-awesome-title, or
# - underscores, as in my_awesome_title
TITLE = title TITLE = title
PANDOC = pandoc PANDOC = pandoc
...@@ -31,6 +34,9 @@ check: spellcheck ...@@ -31,6 +34,9 @@ check: spellcheck
spellcheck: spellcheck:
mdspell --en-us -anrx $(SOURCES_MD) mdspell --en-us -anrx $(SOURCES_MD)
title:
@echo $(TITLE)
clean: clean:
@for dir in $(SUBDIRS); do \ @for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $@; \ $(MAKE) -C $$dir $@; \
...@@ -43,4 +49,5 @@ clean: ...@@ -43,4 +49,5 @@ clean:
clean \ clean \
default \ default \
subdirs \ subdirs \
title \
$(SUBDIRS) \ $(SUBDIRS) \
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment