mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-21 06:18:45 +02:00
Updated build tool
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user