Skip to content

Merge pull request #4408 from faucetsdn/dependabot/pip/pytype-2023.10.24 #18

Merge pull request #4408 from faucetsdn/dependabot/pip/pytype-2023.10.24

Merge pull request #4408 from faucetsdn/dependabot/pip/pytype-2023.10.24 #18

Workflow file for this run

name: Build python packages for release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
env:
RELEASE_PY_VER: '3.10'
jobs:
python-package:
name: "Build and publish python packages"
runs-on: ubuntu-latest
environment:
name: "release"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python-${{ env.RELEASE_PY_VER }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.RELEASE_PY_VER }}
- name: Build python package
run: python3 setup.py sdist
- name: Publish python package to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}