From 233498ef5e717a8c2ad0313bcf58f0d33370cf65 Mon Sep 17 00:00:00 2001 From: Andreas Brain Date: Tue, 6 Sep 2022 22:01:21 +0200 Subject: [PATCH] Deploy build files to a Nextcloud folder --- .drone.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 29fae5c..a797ff1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,9 +35,26 @@ steps: - apt-get -y install texlive-lang-german rsync - pip install -r requirements.txt - make -j4 bundle + - name: upload + image: alpine + environment: + NC_USER: + from_secret: nextcloud_user + NC_PASSWORD: + from_secret: nextcloud_password + commands: + - apk add curl + - curl -X PUT -u $NC_USER:$NC_PASSWORD https://work.wtf-eg.de/remote.php/dav/files/$NC_USER/Member-Handbuch/Das%20Handbuch%20zur%20WTF%20eG.pdf -T bundle/rtfm-dashandbuchzurwtfeg.pdf + - curl -X PUT -u $NC_USER:$NC_PASSWORD https://work.wtf-eg.de/remote.php/dav/files/$NC_USER/Member-Handbuch/Das%20Handbuch%20zur%20WTF%20eG.epub -T bundle/RTFM-DasHandbuchzurWTFeG.epub + when: + branch: + - main + event: + - push + --- kind: signature -hmac: a0a4b7ba82017ec84889766fe8b15b8acbea104753bfe3ff61c212686122ea02 +hmac: 84db7299d18047e70a324c4b059f8a2cdd13b497ac439264e4430a37e443c610 ...