Skip to content

Factory flash fix for C2/C6 (#33) #31

Factory flash fix for C2/C6 (#33)

Factory flash fix for C2/C6 (#33) #31

Workflow file for this run

name: PyPi Publish
on:
workflow_dispatch: # Manually start Publishing
push:
branches:
- factory
tags:
- "v*.*.*"
jobs:
build-pypi:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install libgtk-3-dev libnotify-dev libsdl2-dev
pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04/wxPython-4.2.1-cp39-cp39-linux_x86_64.whl
- name: Install requirements
run: |
pip install -r requirements.txt -r requirements_build.txt
pip install -e .
- name: Run sdist
run: python setup.py sdist bdist_wheel
- name: See dist directory
run: ls dist
- uses: actions/upload-artifact@v2
with:
name: sdist
path: dist/esp_flasher-*.tar.gz
- uses: actions/upload-artifact@v2
with:
name: bdist_wheel
path: dist/esp_flasher-*.whl
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}