add CI for web app
This commit is contained in:
parent
4c7f941234
commit
02e1eeed44
|
@ -6,6 +6,8 @@ steps:
|
|||
build:
|
||||
image: forge.greenboi.me/emerald/cathode-build:latest
|
||||
pull: true
|
||||
environment:
|
||||
- TAURI_MODE=tauri
|
||||
commands:
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn build
|
||||
|
|
|
@ -8,6 +8,8 @@ steps:
|
|||
build:
|
||||
image: forge.greenboi.me/emerald/cathode-build:latest
|
||||
pull: true
|
||||
environment:
|
||||
- TAURI_MODE=tauri
|
||||
commands:
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn tauri build
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
when:
|
||||
- branch: [main, dev]
|
||||
event: [push, manual]
|
||||
- event: deployment
|
||||
environment: production
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: node:20-alpine
|
||||
environment:
|
||||
- TAURI_MODE=web
|
||||
commands:
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn build
|
||||
preview:
|
||||
image: node:20-alpine
|
||||
secrets: [netlify_auth_token, netlify_site_id]
|
||||
when:
|
||||
- event: [push, manual]
|
||||
commands:
|
||||
- yarn netlify deploy --dir build --site
|
||||
deploy:
|
||||
image: node:20-alpine
|
||||
secrets: [netlify_auth_token, netlify_site_id]
|
||||
when:
|
||||
- event: [deployment]
|
||||
environment: production
|
||||
commands:
|
||||
- yarn netlify deploy --prod --dir build --site
|
Loading…
Reference in New Issue