feedvault.se/.github/workflows/deploy.yml
Joakim Helleśen ce22fb68f3
Some checks failed
Deploy to Server / deploy (push) Failing after 5s
Reset everything
2026-03-22 21:49:55 +01:00

27 lines
623 B
YAML

name: Deploy to Server
on:
push:
pull_request:
workflow_dispatch:
jobs:
deploy:
runs-on: self-hosted
env:
DJANGO_DEBUG: False
DJANGO_SECRET_KEY: 1234567890
steps:
- uses: actions/checkout@v6
- run: uv sync --all-extras --dev -U
- run: uv run pytest
- name: Check if makemigrations are needed
run: |
if uv run python manage.py makemigrations --check --dry-run; then
echo "No migrations needed."
else
echo "Migrations needed. Please create and commit migrations before deploying."
exit 1
fi