Skip to content

Trying to fix github actions pyyaml issue #2

Trying to fix github actions pyyaml issue

Trying to fix github actions pyyaml issue #2

name: Build and Upload to PyPI
on:
push:
branches:
- main
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12' # Specify the Python version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install rye # Install rye if it's not already included in your project dependencies
- name: Build wheel
run: rye build --wheel
- name: Publish to PyPI
run: rye publish -r pypi
# - name: Publish to PyPI
# uses: pypa/[email protected]
# with:
# user: __token__ # Use the PyPI API token
# password: ${{ secrets.PYPI_API_TOKEN }} # Set PYPI_API_TOKEN in your repository's secrets