actually use netlify's CI :)
ci/woodpecker/push/build Pipeline was successful
Details
ci/woodpecker/push/build Pipeline was successful
Details
This commit is contained in:
parent
5f6026579d
commit
3e50ea4934
|
@ -1,29 +0,0 @@
|
|||
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
|
||||
deploy:
|
||||
image: node:20-alpine
|
||||
secrets: [netlify_auth_token, netlify_site_id]
|
||||
when:
|
||||
- event: [deployment]
|
||||
environment: production
|
||||
commands:
|
||||
- yarn netlify deploy --prod --dir build
|
|
@ -0,0 +1,21 @@
|
|||
# example netlify.toml
|
||||
[build]
|
||||
command = "yarn build"
|
||||
functions = "netlify/functions"
|
||||
publish = "build"
|
||||
|
||||
## Uncomment to use this redirect for Single Page Applications like create-react-app.
|
||||
## Not needed for static site generators.
|
||||
#[[redirects]]
|
||||
# from = "/*"
|
||||
# to = "/index.html"
|
||||
# status = 200
|
||||
|
||||
## (optional) Settings for Netlify Dev
|
||||
## https://github.com/netlify/cli/blob/main/docs/netlify-dev.md#project-detection
|
||||
#[dev]
|
||||
# command = "yarn start" # Command to start your dev server
|
||||
# port = 3000 # Port that the dev server will be listening on
|
||||
# publish = "dist" # Folder with the static content for _redirect file
|
||||
|
||||
## more info on configuring this file: https://docs.netlify.com/configure-builds/file-based-configuration/
|
Loading…
Reference in New Issue