Skip to content

Added deployment section #311

Added deployment section

Added deployment section #311

Workflow file for this run

name: pre-commit
on:
push:
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
ACCESS_SECRET_KEY: ${{ secrets.ACCESS_SECRET_KEY }}
RESET_PASSWORD_SECRET_KEY: ${{ secrets.RESET_PASSWORD_SECRET_KEY }}
VERIFICATION_SECRET_KEY: ${{ secrets.VERIFICATION_SECRET_KEY }}
OPENAPI_OUTPUT_FILE: ${{ secrets.OPENAPI_OUTPUT_FILE }}
CORS_ORIGINS: ${{ secrets.CORS_ORIGINS }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry with pip
run: pip install poetry
- name: Configure Poetry
working-directory: ./fastapi_backend
run: poetry config virtualenvs.create false
- name: Install dependencies
working-directory: ./fastapi_backend
run: poetry install
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Node dependencies
working-directory: ./nextjs-frontend
run: pnpm install
- name: Run pre-commit
uses: pre-commit/[email protected]