0.10.0 #2
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] | |
permissions: | |
contents: read | |
jobs: | |
release-pypi: | |
name: upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: PyPI | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: setup rye | |
uses: sksat/[email protected] | |
with: | |
version: 0.13.0 | |
- name: Install dependencies with rye | |
run: | | |
rye sync | |
- name: Build | |
# NOTE: `rye build --wheel` must be run in order to include the .data files (for some reason) | |
run: | | |
rye build --wheel | |
rye build --sdist | |
- name: Publish package | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |