Skip to content

Fix hadcoded TLS verification #4

Fix hadcoded TLS verification

Fix hadcoded TLS verification #4

Workflow file for this run

name: Build and Publish to PyPI
on:
push:
tags:
- 'v*'
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Extract version from Git tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Replace version placeholder in setup.py
run: sed -i "s/__VERSION__/$VERSION/g" setup.py
- name: Upgrade pip and install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Build the package
run: python setup.py sdist bdist_wheel
- name: Upload package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*