forked from espressif/esptool
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from tasmota/master
Updates from upstream master
- Loading branch information
Showing
29 changed files
with
665 additions
and
108 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 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/* |
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 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 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
Oops, something went wrong.