forked from Hostea/website
fix: pass author details to deploy fn
parent
8051f53b6f
commit
af8173ccd9
|
@ -6,7 +6,7 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- make env
|
- make env
|
||||||
- make
|
- 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 --init $HOSTEA_WRITE_DEPLOY_KEY
|
||||||
- ./scripts/ci.sh --deploy $PAGES_DEPLOY_SECRET pages
|
- ./scripts/ci.sh --deploy $PAGES_DEPLOY_SECRET pages
|
||||||
- ./scripts/ci.sh --clean
|
- ./scripts/ci.sh --clean
|
||||||
|
|
|
@ -92,7 +92,6 @@ clean() {
|
||||||
# $1: branch name
|
# $1: branch name
|
||||||
# $2: directory containing build assets
|
# $2: directory containing build assets
|
||||||
# $3: Author in <author-name author@example.com> format
|
# $3: Author in <author-name author@example.com> format
|
||||||
# $3: Author in <author-name author@example.com> format
|
|
||||||
deploy() {
|
deploy() {
|
||||||
cd $PROJECT_ROOT
|
cd $PROJECT_ROOT
|
||||||
tmp_dir=$(mktemp -d)
|
tmp_dir=$(mktemp -d)
|
||||||
|
@ -120,7 +119,8 @@ elif match_arg $1 'd' 'deploy'
|
||||||
then
|
then
|
||||||
check_arg $2
|
check_arg $2
|
||||||
check_arg $3
|
check_arg $3
|
||||||
deploy $2 $3
|
check_arg $4
|
||||||
|
deploy $2 $3 $4
|
||||||
elif match_arg $1 'b' 'build'
|
elif match_arg $1 'b' 'build'
|
||||||
then
|
then
|
||||||
build
|
build
|
||||||
|
|
Loading…
Reference in New Issue