2024-04-24 01:36:32 +00:00
|
|
|
steps:
|
2024-11-25 17:19:54 +00:00
|
|
|
tailwind:
|
2024-11-25 17:25:52 +00:00
|
|
|
image: d3fk/tailwindcss:latest
|
2024-04-24 01:36:32 +00:00
|
|
|
commands:
|
2024-11-25 17:25:52 +00:00
|
|
|
- tailwind -o static/styles.css --minify
|
2024-11-25 17:19:54 +00:00
|
|
|
|
|
|
|
zola:
|
2024-11-25 17:25:52 +00:00
|
|
|
image: jauderho/zola
|
2024-11-25 17:19:54 +00:00
|
|
|
commands:
|
2024-11-25 14:43:21 +00:00
|
|
|
- zola build
|
2024-11-25 17:19:54 +00:00
|
|
|
- rm public/404.html public/robots.txt public/sitemap.xml
|
|
|
|
|
|
|
|
zip:
|
2024-11-25 17:25:52 +00:00
|
|
|
image: joshkeegan/zip
|
2024-11-25 17:19:54 +00:00
|
|
|
commands:
|
2024-11-25 14:39:14 +00:00
|
|
|
- cd public
|
2024-10-07 08:25:32 +00:00
|
|
|
- zip -r project.zip . -x ".*"
|
2024-11-25 17:19:54 +00:00
|
|
|
|
|
|
|
upload:
|
2024-11-25 17:25:52 +00:00
|
|
|
image: alpine/curl:latest
|
2024-11-25 17:19:54 +00:00
|
|
|
commands:
|
2024-10-07 13:47:04 +00:00
|
|
|
- 'AUTH_HEADER="Authorization: Bearer $PAGES_API_KEY"'
|
|
|
|
- API_URL=https://pages.hadeedahmad.com/pages/me
|
2024-11-25 17:25:52 +00:00
|
|
|
- curl -s -w "%{http_code}" -F "zipfile=@public/project.zip" -H "$AUTH_HEADER" "$API_URL" | grep -q 200
|
2024-10-07 13:47:04 +00:00
|
|
|
|
|
|
|
secrets: [ PAGES_API_KEY ]
|
2024-11-25 17:19:54 +00:00
|
|
|
|
2024-11-25 17:05:23 +00:00
|
|
|
when:
|
|
|
|
- event: manual
|
|
|
|
- event: push
|
|
|
|
branch: main
|