chore(drizzle): update schema #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Branch Deploys for Netlify | |
on: | |
push: | |
branches: | |
- next | |
paths: | |
- "netlify/functions/**/*.*" | |
- "src/**/*.*" | |
- "lib/**/*.*" | |
- "netlify.toml" | |
jobs: | |
build_and_deploy: | |
name: Build and deploy to Netlify | |
runs-on: ubuntu-22.04 | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
DATABASE_URL: ${{ secrets.STAGING_DB }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
- name: Install PNPM | |
run: npm install -g pnpm | |
- name: Get Store Path | |
id: get-store-path | |
run: echo "store-path=$(pnpm store path)\n" >> $GITHUB_OUTPUT | |
- name: Setup Cache | |
id: setup-cache | |
uses: actions/cache@v4 | |
with: | |
key: ${{ runner.os }}-${{ hashFiles('**/*lock*', 'package.json') }} | |
restore-keys: | | |
${{ runner.os }}-${{ hashFiles('**/*lock*', 'package.json') }} | |
${{ runner.os }}- | |
path: | | |
node_modules | |
${{ steps.get-store-path.outputs.store-path }} | |
- name: Install Dependencies 📦 | |
if: steps.setup-cache.outputs.cache-hit != 'true' | |
run: pnpm i | |
- name: Migrate Database Schema | |
run: pnpm migrate.ci | |
- name: Build ⚙️ & Deploy ⬆️ | |
run: netlify deploy --alias="${{ github.ref_name }}" --build --context deploy-preview --message="${{ github.event.head_commit.message }}" |