Skip to content

Commit

Permalink
build: Migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Apr 30, 2024
1 parent 50be004 commit 9dc9d14
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/actions/migrate/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "MIGRATION"
description: "Builds and deploy vercel project"

inputs:
TEST_SECRET:
description: "TEST_SECRET for migrations"
required: true

runs:
using: "composite"
steps:
- id: branch
run: |
echo "env: -${TEST_SECRET}-"
echo "env: -${{ inputs.TEST_SECRET }}-"
shell: bash
env:
TEST_SECRET: ${{ secrets.TEST_SECRET }}
20 changes: 20 additions & 0 deletions .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Migrate

on:
push:
branches:
- "migrate"

jobs:
migrate:
runs-on: ubuntu-latest

environment:
name: "postgres_development"

steps:
- uses: ./.github/actions/migrate
id: migrate
name: Migrate
with:
TEST_SECRET: ${{ secrets.TEST_SECRET }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ tsconfig.tsbuildinfo

# wrangler builds
dist

# should be here otherwise if placed inside prisma-client pnpm deploy doesn't copy it
packages/prisma-client/src/__generated__
2 changes: 1 addition & 1 deletion packages/prisma-client/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
src/__generated__

0 comments on commit 9dc9d14

Please sign in to comment.