diff --git a/.woodpecker.yml b/.woodpecker.yml index c1a1e57..d39b027 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,7 +6,7 @@ pipeline: commands: - make env - make - - ./scripts/zola.sh deploy pages public "CI_COMMIT_AUTHOR " + - ./scripts/zola.sh deploy pages public "$CI_COMMIT_AUTHOR <$CI_COMMIT_AUTHOR_EMAIL>" - ./scripts/ci.sh --init $HOSTEA_WRITE_DEPLOY_KEY - ./scripts/ci.sh --deploy $PAGES_DEPLOY_SECRET pages - ./scripts/ci.sh --clean diff --git a/scripts/zola.sh b/scripts/zola.sh index 1e3df6f..5dcbea3 100755 --- a/scripts/zola.sh +++ b/scripts/zola.sh @@ -92,7 +92,6 @@ clean() { # $1: branch name # $2: directory containing build assets # $3: Author in format -# $3: Author in format deploy() { cd $PROJECT_ROOT tmp_dir=$(mktemp -d) @@ -120,7 +119,8 @@ elif match_arg $1 'd' 'deploy' then check_arg $2 check_arg $3 - deploy $2 $3 + check_arg $4 + deploy $2 $3 $4 elif match_arg $1 'b' 'build' then build