1
Fork 0
personal_website/.woodpecker.yaml

22 lines
723 B
YAML
Raw Normal View History

2024-04-24 01:36:32 +00:00
steps:
deploy:
2024-11-25 17:05:23 +00:00
image: alpine:latest
2024-04-24 01:36:32 +00:00
commands:
2024-11-25 14:43:21 +00:00
- apk add --no-cache curl zip zola
2024-11-25 17:05:23 +00:00
- curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.15/tailwindcss-linux-x64
- chmod +x tailwind
- ./tailwind -o static/styles.css --minify
2024-11-25 14:43:21 +00:00
- zola build
2024-11-25 14:39:14 +00:00
- cd public
2024-11-25 16:50:38 +00:00
- rm 404.html robots.txt sitemap.xml
2024-10-07 08:25:32 +00:00
- zip -r project.zip . -x ".*"
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
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