mirror of
https://github.com/ae-utbm/sith.git
synced 2025-01-24 16:01:11 +00:00
Update deploy scripts to uv
This commit is contained in:
parent
cbe42d3a60
commit
8d10a5e0ab
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -14,6 +14,8 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: ".python-version"
|
||||
- uses: pre-commit/action@v3.0.1
|
||||
with:
|
||||
extra_args: --all-files
|
||||
|
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
@ -37,12 +37,12 @@ jobs:
|
||||
|
||||
git fetch
|
||||
git reset --hard origin/master
|
||||
poetry install --with prod --without docs,tests
|
||||
uv sync --only-group prod
|
||||
npm install
|
||||
poetry run ./manage.py install_xapian
|
||||
poetry run ./manage.py migrate
|
||||
poetry run ./manage.py collectstatic --clear --noinput
|
||||
poetry run ./manage.py compilemessages
|
||||
uv run ./manage.py install_xapian
|
||||
uv run ./manage.py migrate
|
||||
uv run ./manage.py collectstatic --clear --noinput
|
||||
uv run ./manage.py compilemessages
|
||||
|
||||
sudo systemctl restart uwsgi
|
||||
|
||||
|
10
.github/workflows/taiste.yml
vendored
10
.github/workflows/taiste.yml
vendored
@ -36,11 +36,11 @@ jobs:
|
||||
|
||||
git fetch
|
||||
git reset --hard origin/taiste
|
||||
poetry install --with prod --without docs,tests
|
||||
uv sync --only-group prod
|
||||
npm install
|
||||
poetry run ./manage.py install_xapian
|
||||
poetry run ./manage.py migrate
|
||||
poetry run ./manage.py collectstatic --clear --noinput
|
||||
poetry run ./manage.py compilemessages
|
||||
uv run ./manage.py install_xapian
|
||||
uv run ./manage.py migrate
|
||||
uv run ./manage.py collectstatic --clear --noinput
|
||||
uv run ./manage.py compilemessages
|
||||
|
||||
sudo systemctl restart uwsgi
|
||||
|
Loading…
Reference in New Issue
Block a user