Hadeed Ahmad
579eafd8b4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
16 lines
463 B
YAML
16 lines
463 B
YAML
when:
|
|
- event: manual
|
|
- event: push
|
|
branch: main
|
|
|
|
steps:
|
|
- name: hello-world
|
|
image: node:current-alpine
|
|
commands:
|
|
- apk add --no-cache zip curl
|
|
- npm install vite -g
|
|
- vite build
|
|
- (cd dist && zip -r ../project.zip ./*)
|
|
- 'curl -s -w "%{http_code}" -X POST -F "zipfile=@project.zip" -H "Authorization: Bearer $API_KEY" https://pages.hadeedahmad.com/pages/$(basename "$PWD") | grep -q 200'
|
|
|
|
secrets: [ API_KEY ]
|