Add a deployment yaml
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
8c252c775e
commit
c3a49ef9b3
2 changed files with 12 additions and 6 deletions
12
.woodpecker/woodpecker.yml
Normal file
12
.woodpecker/woodpecker.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Deploy
|
||||||
|
image: node:20-alpine
|
||||||
|
commands:
|
||||||
|
- npm install -g pnpm
|
||||||
|
- pnpm install --frozen-lockfile
|
||||||
|
- pnpm run build
|
||||||
|
- pnpx wrangler pages deploy dist
|
||||||
|
secrets: [ cf_api_token, content_api_url, content_api_key ]
|
|
@ -39,10 +39,4 @@
|
||||||
"prettier-plugin-astro": "^0.13.0",
|
"prettier-plugin-astro": "^0.13.0",
|
||||||
"simple-git-hooks": "^2.11.1"
|
"simple-git-hooks": "^2.11.1"
|
||||||
},
|
},
|
||||||
"simple-git-hooks": {
|
|
||||||
"pre-commit": "pnpm lint-staged"
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*": "pnpm lint:fix"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue