fix: fix credential issues on publishing package (#35) #10
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: publish | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Dependencies | |
run: | | |
pip install . | |
pip install setuptools wheel twine | |
- name: Deploy | |
run: | | |
python setup.py sdist bdist_wheel | |
twine upload dist/* | |
env: | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} |