| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
name: Upload Python Package |
| 10 |
|
| 11 |
on: |
| 12 |
release: |
| 13 |
types: [published] |
| 14 |
|
| 15 |
permissions: {} |
| 16 |
|
| 17 |
jobs: |
| 18 |
deploy: |
| 19 |
|
| 20 |
runs-on: ubuntu-latest |
| 21 |
|
| 22 |
steps: |
| 23 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 24 |
- name: Set up Python |
| 25 |
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 |
| 26 |
with: |
| 27 |
python-version: '3.x' |
| 28 |
- name: Install dependencies |
| 29 |
run: | |
| 30 |
python -m pip install --upgrade pip |
| 31 |
pip install build |
| 32 |
- name: Build package |
| 33 |
run: python -m build |
| 34 |
- name: Publish package |
| 35 |
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b |
| 36 |
with: |
| 37 |
user: __token__ |
| 38 |
password: ${{ secrets.PYPI_API_TOKEN }} |