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 13:47:04 +00:00
|
|
|
- 'curl -s -w "%{http_code}" -X POST -F "zipfile=@project.zip" -H "Authorization: Bearer $PAGES_API_KEY" https://pages.hadeedahmad.com/pages/me | grep -q "200"'
|
2024-10-07 08:31:36 +00:00
|
|
|
|
2024-10-07 13:47:04 +00:00
|
|
|
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
|