Merge pull request #4408 from faucetsdn/dependabot/pip/pytype-2023.10.24 #18
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: 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 }} |