Add collectstatic command to deployment workflow
All checks were successful
Deploy to Server / deploy (push) Successful in 16s
All checks were successful
Deploy to Server / deploy (push) Successful in 16s
This commit is contained in:
parent
79fb9b09c1
commit
5d56a936b0
1 changed files with 2 additions and 1 deletions
3
.github/workflows/deploy.yaml
vendored
3
.github/workflows/deploy.yaml
vendored
|
|
@ -5,7 +5,7 @@ name: Deploy to Server
|
||||||
# forgejo-runner ALL=(root) NOPASSWD: /bin/systemctl restart ttvdrops
|
# 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 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 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:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
@ -37,6 +37,7 @@ jobs:
|
||||||
sudo -u ttvdrops git -C /home/ttvdrops/ttvdrops pull
|
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 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 migrate
|
||||||
|
sudo -u ttvdrops uv run python /home/ttvdrops/ttvdrops/manage.py collectstatic --noinput
|
||||||
sudo systemctl restart ttvdrops
|
sudo systemctl restart ttvdrops
|
||||||
- name: Check if server is up
|
- name: Check if server is up
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue