Add workflow
This commit is contained in:
parent
255c98df66
commit
7e4b866b2a
2 changed files with 15 additions and 0 deletions
15
.woodpecker.yaml
Normal file
15
.woodpecker.yaml
Normal 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 ]
|
BIN
project.zip
Normal file
BIN
project.zip
Normal file
Binary file not shown.
Reference in a new issue