From d69f58d28f5e5c24032d6c435c0cfbf069da6921 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Wed, 2 Dec 2020 12:33:50 +0100 Subject: [PATCH] fix gitignores in hugo docs by using filtered files from rsync --- .drone.star | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.drone.star b/.drone.star index 72bcf615d6..30572eca04 100644 --- a/.drone.star +++ b/.drone.star @@ -1283,14 +1283,6 @@ def docs(ctx): 'hugo', ], }, - { - 'name': 'list and remove temporary files', - 'image': 'owncloudci/alpine:latest', - 'commands': [ - 'tree hugo/public', - 'rm -rf docs/hugo', - ], - }, { 'name': 'publish', 'image': 'plugins/gh-pages:1', @@ -1302,7 +1294,7 @@ def docs(ctx): 'password': { 'from_secret': 'github_token', }, - 'pages_directory': 'docs/', + 'pages_directory': 'docs/hugo/content', 'target_branch': 'docs', }, 'when': { @@ -1313,6 +1305,14 @@ def docs(ctx): }, }, }, + { + 'name': 'list and remove temporary files', + 'image': 'owncloudci/alpine:latest', + 'commands': [ + 'tree hugo/public', + 'rm -rf docs/hugo', + ], + }, { 'name': 'downstream', 'image': 'plugins/downstream',