1
Fork 0
This repository has been archived on 2024-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
qr-code-component/.woodpecker.yaml
Hadeed Ahmad e4e6701143
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
Add workflow
2024-10-07 17:39:28 +05:00

15 lines
419 B
YAML

when:
- event: manual
- event: push
branch: main
steps:
- name: hello-world
image: node:latest
commands:
- 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 ]