diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 461e5b4..536ce41 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -2,9 +2,9 @@ name: Deploy on: workflow_dispatch: -# push: -# branches: -# - main + push: + branches: + - main jobs: diff --git a/pycon/templates/components/footer.html b/pycon/templates/components/footer.html index 2c8c87c..e53f5a1 100644 --- a/pycon/templates/components/footer.html +++ b/pycon/templates/components/footer.html @@ -24,19 +24,19 @@

PyCon China 2024

diff --git a/update.sh b/update.sh index 883e4c2..721621d 100755 --- a/update.sh +++ b/update.sh @@ -1,6 +1,8 @@ #!/bin/bash set -ex +cd "$(dirname "$0")" + git fetch origin git reset --hard origin/main @@ -9,4 +11,5 @@ pdm sync source .venv/bin/activate export DJANGO_SETTINGS_MODULE=pycon.settings.production python manage.py migrate --noinput +python manage.py collectstatic --noinput sudo systemctl restart pycon.service