fix: pass author details to deploy fn
ci/woodpecker/push/woodpecker Pipeline failed Details

pull/6/head
Aravinth Manivannan 2022-04-16 08:31:34 +05:30
parent 8051f53b6f
commit af8173ccd9
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ pipeline:
commands:
- make env
- make
- ./scripts/zola.sh deploy pages public "CI_COMMIT_AUTHOR <CI_COMMIT_AUTHOR_EMAIL>"
- ./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

View File

@ -92,7 +92,6 @@ clean() {
# $1: branch name
# $2: directory containing build assets
# $3: Author in <author-name author@example.com> format
# $3: Author in <author-name author@example.com> 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