Skip to content

Commit

Permalink
ci(pypi_release): Update distribution build process
Browse files Browse the repository at this point in the history
  • Loading branch information
radimkarnis committed Sep 4, 2024
1 parent 1693449 commit eacc94a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/dev_release_esptool_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install twine 'setuptools>=64'
python -m pip install twine build
- name: Create development release ${{ github.ref_name }}
env:
Expand All @@ -36,6 +36,5 @@ jobs:
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/*
python -m build
twine upload dist/*
5 changes: 2 additions & 3 deletions .github/workflows/release_esptool_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'setuptools>=64' twine
pip install twine build
- name: Build and upload esptool ${{ github.event.release.tag_name }}
env:
TWINE_USERNAME: __token__
Expand All @@ -34,7 +34,6 @@ jobs:
exit 1
else
echo "Packaging and publishing new esptool version: ${CURRENT_VERSION}"
python setup.py sdist
tar -ztvf dist/*
python -m build
twine upload dist/*
fi

0 comments on commit eacc94a

Please sign in to comment.