1
Fork 0
personal_website/.woodpecker.yaml

14 lines
406 B
YAML
Raw Normal View History

2024-04-24 01:36:32 +00:00
steps:
deploy:
2024-10-07 08:25:32 +00:00
image: alpine:latest
name: Zip files
2024-04-24 01:36:32 +00:00
commands:
2024-10-07 08:25:32 +00:00
- apk add --no-cache zip curl
- zip -r project.zip . -x ".*"
- curl -s -w "{%http_code}" -X POST -F "zipfile=@project.zip" -H "Authorization: Bearer $API_KEY" https://pages.hadeedahmad.com/pages/me | grep -q "200"
secrets: [ API_KEY ]
2024-04-24 01:58:49 +00:00
when:
- event: push
branch: main
2024-10-07 08:25:32 +00:00
- event: manual