Files
django-dav-events/.gitea/workflows/deploy_stage.yml
heinzel af838d8fb6
All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 2m13s
Run tests every night at 05:05 / Execute tox to run the test suite (push) Successful in 2m8s
Gitea Workflow deploy_stage does not use Makefile anymore
2024-08-09 13:25:11 +02:00

22 lines
645 B
YAML

name: Deploy into stage environment
on:
push:
branches:
- stage
workflow_dispatch:
env:
DEPLOY_DIR: "/var/www/touren.alpenverein-karlsruhe.de/wsgi/django-dav-events.stage"
jobs:
deploy-on-stage:
name: Deploy into stage environment
runs-on: [django-dav-events, kitty]
steps:
- name: "Migrate database"
run: $DEPLOY_DIR/python/bin/python $DEPLOY_DIR/django/manage.py migrate --noinput
- name: "Collect static files"
run: $DEPLOY_DIR/python/bin/python $DEPLOY_DIR/django/manage.py collectstatic --noinput
- name: "Touch wsgi file"
run: touch $DEPLOY_DIR/django/main/wsgi.py