Skip to content

Commit

Permalink
[Deno Deploy] Update .github/workflows/deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
deno-deploy[bot] authored Nov 2, 2024
1 parent 3f6957e commit e7d1aa1
Showing 1 changed file with 1 addition and 49 deletions.
50 changes: 1 addition & 49 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,11 @@ jobs:
name: Deploy
runs-on: ubuntu-latest

environment: production

# steps:
# env:
# OPENAI_API_KEY: ${{ vars.OPENAI_API_KEY }}
# SUPABASE_URL: ${{ vars.SUPABASE_URL }}
# SUPABASE_KEY: ${{ vars.SUPABASE_KEY }}
# SUPABASE_USER: ${{ vars.SUPABASE_USER }}
# SUPABASE_PASS: ${{ vars.SUPABASE_PASS }}
# SUPABASE_TOKEN: ${{ vars.SUPABASE_TOKEN }}


permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository

steps:

- name: Clone repository
uses: actions/checkout@v4

Expand All @@ -41,49 +28,14 @@ jobs:
with:
node-version: lts/*

- name: Create dot env
run: "echo OPENAI_API_KEY=${{ vars.OPENAI_API_KEY }} > .env"

- name: Append to dot env
run: "echo SUPABASE_URL=${{ vars.SUPABASE_URL }} >> .env"

- name: Append to dot env
run: "echo SUPABASE_KEY=${{ vars.SUPABASE_KEY }} >> .env"

- name: Append to dot env
run: "echo SUPABASE_USER=${{ vars.SUPABASE_USER }} >> .env"

- name: Append to dot env
run: "echo SUPABASE_PASS=${{ vars.SUPABASE_PASS }} >> .env"

- name: Echo dot env file
run: echo "$(<.env )"

# - name: Echo openai_api_key
# run: "echo openai_api_key variable : ${{vars.OPENAI_API_KEY}}"
# env:
# OPENAI_API_KEY: ${{ vars.OPENAI_API_KEY }}
# SUPABASE_URL: ${{ vars.SUPABASE_URL }}
# SUPABASE_KEY: ${{ vars.SUPABASE_KEY }}
# SUPABASE_USER: ${{ vars.SUPABASE_USER }}
# SUPABASE_PASS: ${{ vars.SUPABASE_PASS }}
# SUPABASE_TOKEN: ${{ vars.SUPABASE_TOKEN }}

# - name: check env
# run: "env"

- name: Install step
run: "deno install"

- name: List all files
run: "ls -la"

- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "chanwit-y-dictionary-25"
entrypoint: "./main.ts"
entrypoint: "main.ts"
root: ""
include: "./.env"


1 comment on commit e7d1aa1

@deno-deploy
Copy link
Contributor Author

@deno-deploy deno-deploy bot commented on e7d1aa1 Nov 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

UNCAUGHT_EXCEPTION

Error: supabaseUrl is required.
    at new SupabaseClient (https://jsr.io/@supabase/supabase-js/2.45.6/src/SupabaseClient.ts:75:29)
    at createClient (https://jsr.io/@supabase/supabase-js/2.45.6/src/index.ts:40:10)
    at file:///src/libs/db/index.ts:6:25

Please sign in to comment.