feat(esp32c5): add target esp32c5 beta3 #3
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
# This workflow will upload an esptool Python package when a dev release tag (e.g. "v4.7.dev2") is pushed | |
name: PyPI dev release | |
on: | |
push: | |
tags: | |
- v*.*.dev* | |
jobs: | |
build_and_upload: | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') && contains(github.ref_name, 'dev') | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@master | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install twine setuptools | |
- name: Create development release ${{ github.ref_name }} | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
TWINE_NON_INTERACTIVE: true | |
run: | | |
DEV_VERSION=$(echo "${{ github.ref_name }}" | grep -oE 'dev[0-9]+' | sed 's/dev//') | |
python ci/patch_dev_release.py --dev-no ${DEV_VERSION} esptool/__init__.py | |
git diff | |
python -m pip download esptool==$(python setup.py -V) && echo "Version ${{ github.ref_name }} already published, skipping..." && exit 1 | |
echo "Packaging and publishing new esptool development release: ${{ github.ref_name }}" | |
python setup.py sdist | |
tar -ztvf dist/* | |
twine upload dist/* |