v1.0.1 #1
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: python-package | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
strategy: | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: [3.10] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install from source | |
shell: pwsh | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade setuptools wheel twine | |
python -m pip install -e . | |
- name: Build | |
shell: pwsh | |
run: | | |
python setup.py sdist bdist_wheel | |
- name: Publish to PyPI | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
shell: pwsh | |
run: twine upload dist/* |