swemaps 0.1.0 #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: release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-release: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install and setup rye | |
run: | | |
python_version=$(cat .python-version) | |
curl -sSf https://rye-up.com/get | RYE_VERSION="0.33.0" RYE_TOOLCHAIN_VERSION="$python_version" RYE_INSTALL_OPTION="--yes" bash | |
echo "$HOME/.rye/shims" >> $GITHUB_PATH | |
- name: Build for distribution | |
run: | | |
rye build | |
- name: Publish to PyPI | |
run: | | |
rye publish --token ${{ secrets.PYPI_TOKEN }} --yes |