Skip to content

Commit

Permalink
Merge pull request #26 from brainelectronics/bugfix/publish-package-w…
Browse files Browse the repository at this point in the history
…orkflow-fix

fix package publish workflow steps
  • Loading branch information
brainelectronics authored Mar 1, 2023
2 parents a154426 + 8d6df63 commit f46aa18
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,14 @@ jobs:
--version_file nextion/version.py \
--version_file_type py \
--debug
# micropython-nextion is owned by someone else on test.pypi.org
# rename package only for this case
sed -i \
"s/name\='micropython-nextion'/name\='be-micropython-nextion'/" \
setup.py
python setup.py sdist
- name: Publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine check dist/*.tar.gz
twine upload \
--skip-existing \
--verbose \
dist/*.tar.gz
rm dist/*.orig
# sdist call create non conform twine files *.orig, remove them
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
Expand Down

0 comments on commit f46aa18

Please sign in to comment.