actually use netlify's CI :)
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Emerald 2023-10-26 22:40:42 -04:00
parent 5f6026579d
commit 3e50ea4934
Signed by: emerald
GPG Key ID: 13F7EFB915A0F623
2 changed files with 21 additions and 29 deletions

View File

@ -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

21
netlify.toml Normal file
View File

@ -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/