Skip to content

Merge pull request #247 from RedHatQE/pre-commit-ci-update-config #72

Merge pull request #247 from RedHatQE/pre-commit-ci-update-config

Merge pull request #247 from RedHatQE/pre-commit-ci-update-config #72

Workflow file for this run

name: 🐍 Publish to PyPI
on:
push:
branches:
- master
tags:
- '*'
jobs:
build-and-publish:
name: Build and publish Python 🐍 distributions to PyPI
if: startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- name: Build Package and Check
run: |
pip install -U wheel twine
pip wheel --no-deps -w dist .
twine check dist/*
- name: Deploy to PyPi
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_wt_core }}