Skip to content

Merge pull request #299 from DashAISoftware/develop #9

Merge pull request #299 from DashAISoftware/develop

Merge pull request #299 from DashAISoftware/develop #9

Workflow file for this run

name: Build and Publish to PyPI
on:
push:
branches:
- production
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install frontend dependencies
run: yarn install
working-directory: DashAI/front
- name: Build frontend
run: yarn build
working-directory: DashAI/front
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build Python package
run: python -m build
- name: Verify frontend is included in wheel
run: |
if ! zipinfo dist/*.whl | grep -q 'DashAI/front/build'; then
echo "❌ Archivos del frontend no encontrados en el wheel"
exit 1
fi
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*