Skip to content

flake

flake #61

# This workflow will upload a Debiai-gui Package using Twine when the main branch is updated
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: build
on:
push:
branches:
- main
- 205-debiai-easy-start-module-to-launch-debiai-standlalone
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Build frontend
run: |
cd frontend
npm install
npm run build
cp -r dist ../debiaiServer/dist
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r debiaiServer/requirements.txt
pip install setuptools wheel
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist