32 lines
726 B
YAML
32 lines
726 B
YAML
name: Sync repository
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: rezeptfinder-runner
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Sync to /opt/rezept_finder
|
|
run: |
|
|
rsync -a --delete \
|
|
--exclude .git \
|
|
--exclude .gitea \
|
|
./ /opt/rezept_finder/
|
|
|
|
deploy_backend:
|
|
runs-on: rezeptfinder-runner
|
|
|
|
steps:
|
|
- name: Prepare Python venv
|
|
run: |
|
|
python3 -m venv /opt/rezept_finder/venv || true
|
|
/opt/rezept_finder/venv/bin/pip install --upgrade pip
|
|
/opt/rezept_finder/venv/bin/pip install -r /opt/rezept_finder/backend/requirements.txt |