Bump pyyaml from 6.0 to 6.0.2 #45
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: Publish Python Distributions to PyPI and TestPyPI | |
on: push | |
jobs: | |
build-and-publish: | |
name: Build and Publish Python Distributions | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel build | |
- name: Get version from git tag | |
run: sed -i s/VERSION/$(git describe --tags --always)/g setup.py | |
- name: Build distributions | |
run: python -m build --sdist --wheel --outdir dist/ | |
- name: Publish to TestPyPI | |
if: contains(github.ref, 'refs/tags') && github.event_name == 'push' | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository_url: https://test.pypi.org/legacy/ | |
- name: Publish to PyPI | |
if: contains(github.ref, 'refs/tags') && github.event_name == 'push' | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |