Updated build tool

This commit is contained in:
Spitap
2023-04-22 13:51:06 +02:00
2 changed files with 11 additions and 7 deletions
+4 -4
View File
@@ -159,10 +159,10 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.10'
- name: Build frontend
shell: bash -l {0}
run: |
@@ -176,12 +176,12 @@ jobs:
- name: Build packages
run: |
sudo apt-get install librrd-dev rrdtool libssl-dev
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade pip build
pip install -r requirements.txt
cd modoboa
django-admin compilemessages
cd ..
python setup.py sdist bdist_wheel
python -m build
- name: Publish to Test PyPI
if: endsWith(github.event.ref, '/master')
uses: pypa/gh-action-pypi-publish@release/v1