Skip to content

Commit

Permalink
Init included
Browse files Browse the repository at this point in the history
  • Loading branch information
bbadajos committed Oct 25, 2023
1 parent e46f87c commit eafa5b6
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/createtabletest2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Create Simple Table
on:
push:
branches:
- test_table_script

jobs:
create-table:
runs-on: ubuntu-latest
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
PROJECT_ID: oecrkeanazdxowjcpjqr

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3

- name: Debug
run: |
ls -l /node_modules/supabase
- name: Install Supabase CLI
run: npm install -g supabase-cli

- name: Set up Supabase CLI
uses: supabase/setup-cli@v1
with:
version: latest

- name: Configure Supabase
run: supabase init --project-id $PROJECT_ID --key $SUPABASE_ACCESS_TOKEN

- run: supabase link --project-ref $PROJECT_ID
- run: supabase db push

# - name: Create table
# run: |
# supabase create table table_test --schema public --columns "firstcolumn:text,secondcolumn:bigint"

- name: Check
run: echo "Table created!"

- name: Clean Up
run: npm uninstall -g supabase-cli

0 comments on commit eafa5b6

Please sign in to comment.