Skip to content

Move @types/pg to dependencies for production build #50

Move @types/pg to dependencies for production build

Move @types/pg to dependencies for production build #50

Workflow file for this run

name: Deploy to Clever Cloud
on:
push:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
- run: bun install
- name: Build
run: bun run build
- name: Typecheck
run: bun run typecheck
- name: Test
run: bun test src/
deploy:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Push to Clever Cloud
env:
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
CLEVER_GIT_URL: ${{ secrets.CLEVER_GIT_URL }}
run: |
CLEVER_HOST=$(echo "$CLEVER_GIT_URL" | sed 's|https://||' | cut -d'/' -f1)
git credential-store --file=/tmp/git-creds store <<EOF
protocol=https
host=${CLEVER_HOST}
username=${CLEVER_TOKEN}
password=${CLEVER_SECRET}
EOF
git config credential.helper "store --file=/tmp/git-creds"
git push "${CLEVER_GIT_URL}" main:master --force