chore: readme adjustment, version adjustment for testing #4
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: Build and Publish Python Package | |
on: | |
push: | |
jobs: | |
build-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install poetry | |
run: pip install poetry | |
- name: Build Wheel | |
run: poetry build -f wheel | |
- name: Upload Wheel | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist/* | |
- name: Publish to Test PyPI | |
env: | |
TWINE_USERNAME: '__token__' | |
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
run: | | |
pip install twine | |
twine upload --repository testpypi dist/* | |
# - name: Publish to PyPI | |
# if: startsWith(github.ref, 'refs/tags/') | |
# env: | |
# TWINE_USERNAME: '__token__' | |
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
# run: | | |
# pip install twine | |
# twine upload dist/* |