Skip to content

Commit

Permalink
chore: enable auto deploy
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Oct 8, 2024
1 parent a3bcf98 commit 001b620
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Deploy

on:
workflow_dispatch:
# push:
# branches:
# - main
push:
branches:
- main


jobs:
Expand Down
26 changes: 13 additions & 13 deletions pycon/templates/components/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ <h3>PyCon China 2024</h3>
<div class="footer-section">
<h3>往届大会</h3>
<ul class="past-conferences">
<li><a href="https://cn.pycon.org/2023" target="_blank">2023</a></li>
<li><a href="https://cn.pycon.org/2022" target="_blank">2022</a></li>
<li><a href="https://cn.pycon.org/2021" target="_blank">2021</a></li>
<li><a href="https://cn.pycon.org/2020" target="_blank">2020</a></li>
<li><a href="https://cn.pycon.org/2019" target="_blank">2019</a></li>
<li><a href="https://cn.pycon.org/2018" target="_blank">2018</a></li>
<li><a href="https://cn.pycon.org/2017" target="_blank">2017</a></li>
<li><a href="https://cn.pycon.org/2016" target="_blank">2016</a></li>
<li><a href="https://cn.pycon.org/2015" target="_blank">2015</a></li>
<li><a href="https://cn.pycon.org/2014" target="_blank">2014</a></li>
<li><a href="https://cn.pycon.org/2013" target="_blank">2013</a></li>
<li><a href="https://cn.pycon.org/2012" target="_blank">2012</a></li>
<li><a href="https://cn.pycon.org/2011" target="_blank">2011</a></li>
<li><a href="https://cn.pycon.org/2023/" target="_blank">2023</a></li>
<li><a href="https://cn.pycon.org/2022/" target="_blank">2022</a></li>
<li><a href="https://cn.pycon.org/2021/" target="_blank">2021</a></li>
<li><a href="https://cn.pycon.org/2020/" target="_blank">2020</a></li>
<li><a href="https://cn.pycon.org/2019/" target="_blank">2019</a></li>
<li><a href="https://cn.pycon.org/2018/" target="_blank">2018</a></li>
<li><a href="https://cn.pycon.org/2017/" target="_blank">2017</a></li>
<li><a href="https://cn.pycon.org/2016/" target="_blank">2016</a></li>
<li><a href="https://cn.pycon.org/2015/" target="_blank">2015</a></li>
<li><a href="https://cn.pycon.org/2014/" target="_blank">2014</a></li>
<li><a href="https://cn.pycon.org/2013/" target="_blank">2013</a></li>
<li><a href="https://cn.pycon.org/2012/" target="_blank">2012</a></li>
<li><a href="https://cn.pycon.org/2011/" target="_blank">2011</a></li>
</ul>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -ex

cd "$(dirname "$0")"

git fetch origin
git reset --hard origin/main

Expand All @@ -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

0 comments on commit 001b620

Please sign in to comment.