1
Fork 0

Add workflow
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed

This commit is contained in:
Hadeed 2024-10-07 17:26:53 +05:00
parent 255c98df66
commit e4e6701143

15
.woodpecker.yaml Normal file
View file

@ -0,0 +1,15 @@
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 ]