@@ -1,4 +1,4 @@
|
|||||||
name: Sync repository
|
name: Deploy repository
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,7 +7,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
deploy:
|
||||||
runs-on: rezeptfinder-runner
|
runs-on: rezeptfinder-runner
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -19,12 +19,12 @@ jobs:
|
|||||||
rsync -a --delete \
|
rsync -a --delete \
|
||||||
--exclude .git \
|
--exclude .git \
|
||||||
--exclude .gitea \
|
--exclude .gitea \
|
||||||
|
--exclude .env \
|
||||||
|
--exclude venv \
|
||||||
|
--exclude .venv \
|
||||||
|
--exclude node_modules \
|
||||||
./ /opt/rezept_finder/
|
./ /opt/rezept_finder/
|
||||||
|
|
||||||
deploy_backend:
|
|
||||||
runs-on: rezeptfinder-runner
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Prepare Python venv
|
- name: Prepare Python venv
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv /opt/rezept_finder/venv || true
|
python3 -m venv /opt/rezept_finder/venv || true
|
||||||
|
|||||||
Reference in New Issue
Block a user