diff --git a/.github/workflows/ci-migrate.yml b/.github/workflows/ci-migrate.yml new file mode 100644 index 0000000..1568dc3 --- /dev/null +++ b/.github/workflows/ci-migrate.yml @@ -0,0 +1,24 @@ +name: Migrate Production + +on: + push: + branches: + - main + +jobs: + migrate_production: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Build node env + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install Dependencies + run: npm install + + - name: Generate and Migrate + run: npm db:generate && npm db:migrate deploy