refactor CI

This commit is contained in:
imperosol
2024-10-15 12:32:40 +02:00
committed by Bartuccio Antoine
parent 2dd434d987
commit c7a8a1a91c
3 changed files with 8 additions and 16 deletions

View File

@ -13,7 +13,7 @@ jobs:
steps:
- name: SSH Remote Commands
uses: appleboy/ssh-action@dce9d565de8d876c11d93fa4fe677c0285a66d78
uses: appleboy/ssh-action@v1.1.0
with:
# Proxy
proxy_host : ${{secrets.PROXY_HOST}}
@ -32,8 +32,7 @@ jobs:
# See https://github.com/ae-utbm/sith/wiki/GitHub-Actions#deployment-action
script: |
export PATH="$HOME/.poetry/bin:$PATH"
pushd ${{secrets.SITH_PATH}}
cd ${{secrets.SITH_PATH}}
git fetch
git reset --hard origin/taiste
@ -41,7 +40,7 @@ jobs:
npm install
poetry run ./manage.py install_xapian
poetry run ./manage.py migrate
poetry run ./manage.py collectstatic --clear --clear-generated --noinput
poetry run ./manage.py collectstatic --clear --noinput
poetry run ./manage.py compilemessages
sudo systemctl restart uwsgi