Skip to content

Merge pull request #111 from aquilax/dependabot/pip/typing-extensions… #289

Merge pull request #111 from aquilax/dependabot/pip/typing-extensions…

Merge pull request #111 from aquilax/dependabot/pip/typing-extensions… #289

name: Publish to PyPI
on: push
jobs:
build-n-publish:
name: Build and publish PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: release
url: https://pypi.org/p/showtime-cli
steps:
- uses: actions/checkout@master
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install tox
run: python -m pip install tox
- name: Run tests
run: tox
- name: Install pep517
run: >-
python -m
pip install
pep517
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
pep517.build
--source
--binary
--out-dir dist/
.
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e