v3.0.4 #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PyPi Publish | |
on: | |
workflow_dispatch: # Manually start Publishing | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build-pypi: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt install libnotify-dev libsdl2-dev | |
- 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@v4 | |
with: | |
name: sdist | |
path: dist/esp_flasher-*.tar.gz | |
- uses: actions/upload-artifact@v4 | |
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 }} |