From 5d56a936b05b0b9efac9abac015065a8215ff2bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Helle=C5=9Ben?= Date: Thu, 19 Mar 2026 19:53:29 +0100 Subject: [PATCH] Add collectstatic command to deployment workflow --- .github/workflows/deploy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 088ebc1..97dbb0a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -5,7 +5,7 @@ name: Deploy to Server # forgejo-runner ALL=(root) NOPASSWD: /bin/systemctl restart ttvdrops # forgejo-runner ALL=(ttvdrops) NOPASSWD: /usr/bin/uv run python /home/ttvdrops/ttvdrops/manage.py migrate # forgejo-runner ALL=(ttvdrops) NOPASSWD: /usr/bin/uv sync -U --all-extras --dev --directory /home/ttvdrops/ttvdrops - +# forgejo-runner ALL=(ttvdrops) NOPASSWD: /usr/bin/uv run python /home/ttvdrops/ttvdrops/manage.py collectstatic --noinput on: push: pull_request: @@ -37,6 +37,7 @@ jobs: sudo -u ttvdrops git -C /home/ttvdrops/ttvdrops pull sudo -u ttvdrops uv sync -U --all-extras --dev --directory /home/ttvdrops/ttvdrops sudo -u ttvdrops uv run python /home/ttvdrops/ttvdrops/manage.py migrate + sudo -u ttvdrops uv run python /home/ttvdrops/ttvdrops/manage.py collectstatic --noinput sudo systemctl restart ttvdrops - name: Check if server is up run: |