1
Fork 0
personal_website/.woodpecker.yaml

19 lines
547 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 ".*"
2024-10-07 08:31:36 +00:00
2024-10-07 13:47:04 +00:00
- 'AUTH_HEADER="Authorization: Bearer $PAGES_API_KEY"'
- API_URL=https://pages.hadeedahmad.com/pages/me
# - curl -s -w "%{http_code}" -F "zipfile=@project.zip" -H "$AUTH_HEADER" "$API_URL" | grep -q 200
- curl -v -F "zipfile=@project.zip" -H "$AUTH_HEADER" "$API_URL"
secrets: [ PAGES_API_KEY ]
2024-04-24 01:58:49 +00:00
when:
2024-10-07 08:31:36 +00:00
- event: manual
2024-04-24 01:58:49 +00:00
- event: push
branch: main