Skip to content

fix #37

fix #37 #70

Workflow file for this run

name: deploy-preview
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run test
- run: npm run build
env:
VITE_BRANCH: ${{ github.ref_name }}
VITE_PREVIEW: 1
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_KYSELY_PLAYGROUND }}"
channelId: preview
expires: 7d
projectId: kysely-playground