diff --git a/apps/docs/pages/guides/functions/cicd-workflow.mdx b/apps/docs/pages/guides/functions/cicd-workflow.mdx index 4cd57580e9e..4827bde8473 100644 --- a/apps/docs/pages/guides/functions/cicd-workflow.mdx +++ b/apps/docs/pages/guides/functions/cicd-workflow.mdx @@ -31,7 +31,7 @@ jobs: - uses: supabase/setup-cli@v1 with: - version: 1.0.0 + version: latest - run: supabase functions deploy --project-ref $PROJECT_ID ``` diff --git a/apps/docs/pages/guides/functions/examples/github-actions.mdx b/apps/docs/pages/guides/functions/examples/github-actions.mdx index 94777f4366d..7baf600b40d 100644 --- a/apps/docs/pages/guides/functions/examples/github-actions.mdx +++ b/apps/docs/pages/guides/functions/examples/github-actions.mdx @@ -40,9 +40,18 @@ jobs: - uses: supabase/setup-cli@v1 with: - version: 1.0.0 + version: latest - - run: supabase functions deploy github-action-deploy --project-ref $PROJECT_ID + - run: supabase functions deploy --project-ref $PROJECT_ID +``` + +Since Supabase CLI [v1.62.0](https://github.com/supabase/cli/releases/tag/v1.62.0) you can deploy all functions with a single command. + +Individual function configuration like [JWT verification](/docs/reference/cli/config#functions.function_name.verify_jwt) and [import map location](/docs/reference/cli/config#functions.function_name.import_map) can be set via the `config.toml` file. + +```toml +[functions.hello-world] +verify_jwt = false ``` export const Page = ({ children }) => diff --git a/examples/edge-functions/.github/workflows/deploy.yaml b/examples/edge-functions/.github/workflows/deploy.yaml index 1bb40de48ef..054fe9b8e40 100644 --- a/examples/edge-functions/.github/workflows/deploy.yaml +++ b/examples/edge-functions/.github/workflows/deploy.yaml @@ -19,6 +19,6 @@ jobs: - uses: supabase/setup-cli@v1 with: - version: 1.0.0 + version: latest - run: supabase functions deploy github-action-deploy --project-ref $PROJECT_ID diff --git a/examples/edge-functions/README.md b/examples/edge-functions/README.md index c80b938b6e9..e0f895d4ca1 100644 --- a/examples/edge-functions/README.md +++ b/examples/edge-functions/README.md @@ -88,7 +88,7 @@ jobs: - uses: supabase/setup-cli@v1 with: - version: 1.0.0 + version: latest - run: supabase functions deploy --project-ref $PROJECT_ID ``` diff --git a/examples/edge-functions/supabase/functions/github-action-deploy/README.md b/examples/edge-functions/supabase/functions/github-action-deploy/README.md index 01a7fd0d7d1..a9d91966077 100644 --- a/examples/edge-functions/supabase/functions/github-action-deploy/README.md +++ b/examples/edge-functions/supabase/functions/github-action-deploy/README.md @@ -26,7 +26,7 @@ jobs: - uses: supabase/setup-cli@v1 with: - version: 1.0.0 + version: latest - run: supabase functions deploy github-action-deploy --project-ref $PROJECT_ID ```