© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
5 replies
Joentze

Issues Deploying Edge Functions from Github Actions/Act Local

Hi there, i'm trying to deploy my functions through github actions. I'm testing my workflow locally using Act (https://github.com/nektos/act). the following is my .yml file:

name: Deploy to Production

on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest

    env:
      SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
      SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}
      SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}

    steps:
      - uses: actions/checkout@v4
      - uses: supabase/setup-cli@v1
        with:
          version: latest

      - uses: pnpm/action-setup@v4
        name: Install pnpm
        with:
          version: 10
          run_install: false

      - name: Install Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: "pnpm"

      - name: Install dependencies
        run: pnpm install

      # Generate TypeScript types from database schema
      - run: |
          echo "Linking to Supabase project..."
          supabase link --project-ref $SUPABASE_PROJECT_ID

      # Deploys migration to production database
      - run: |
          echo "Running database migrations..."
          supabase db push --yes --include-seed

      - run: |
          echo "Deploying edge functions..."
          supabase functions deploy --project-ref $SUPABASE_PROJECT_ID
name: Deploy to Production

on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest

    env:
      SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
      SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}
      SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}

    steps:
      - uses: actions/checkout@v4
      - uses: supabase/setup-cli@v1
        with:
          version: latest

      - uses: pnpm/action-setup@v4
        name: Install pnpm
        with:
          version: 10
          run_install: false

      - name: Install Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: "pnpm"

      - name: Install dependencies
        run: pnpm install

      # Generate TypeScript types from database schema
      - run: |
          echo "Linking to Supabase project..."
          supabase link --project-ref $SUPABASE_PROJECT_ID

      # Deploys migration to production database
      - run: |
          echo "Running database migrations..."
          supabase db push --yes --include-seed

      - run: |
          echo "Deploying edge functions..."
          supabase functions deploy --project-ref $SUPABASE_PROJECT_ID


however, i run into an error on the last step, the image is the error.

Thank you for the help
Screenshot_2025-07-16_at_4.30.43_PM.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Deploying Edge Functions Shared Folder
SupabaseSSupabase / help-and-questions
8mo ago
Authorization for Local Edge Functions
SupabaseSSupabase / help-and-questions
2w ago
Call Edge Functions from Database Functions
SupabaseSSupabase / help-and-questions
7mo ago
Supabase edge functions and local imports
SupabaseSSupabase / help-and-questions
4mo ago