1.1.0 #6
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: release | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
# This job publishes the package to PyPI | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./sdk | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
- name: Create source and wheel dist | |
# (2024-12-11, s-heppner) | |
# The PyPI Action expects the dist files in a toplevel `/dist` directory, | |
# so we have to specify this as output directory here. | |
run: | | |
python -m build --outdir ../dist | |
- name: Publish distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_ORG_TOKEN }} |