leafee98-blog/.woodpecker/deploy.yml
leafee98 cfbd011880
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
edit CI script
2024-03-04 14:07:34 +08:00

12 lines
441 B
YAML

steps:
build:
image: 'myhugo:0.3'
commands:
- 'hugo'
- 'find public -mindepth 1 -not -type d -printf "%P\n" > /tmp/filelist'
- 'tar -cf public.tar.gz --gzip -C public -T /tmp/filelist'
- 'response=$(curl --silent --user $HTTP_USER:$HTTP_PASS --data-binary @public.tar.gz $HTTP_ENDPOINT)'
- 'echo "$response"'
- 'test "$response" = "Success"'
secrets: [ http_user, http_pass, http_endpoint ]