Add a deployment yaml

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2024-07-14 20:09:42 +05:30
parent 8c252c775e
commit c3a49ef9b3
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5
2 changed files with 12 additions and 6 deletions

View 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 ]

View file

@ -39,10 +39,4 @@
"prettier-plugin-astro": "^0.13.0",
"simple-git-hooks": "^2.11.1"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "pnpm lint:fix"
}
}