Skip to content

Commit

Permalink
Update readme. Publish PyPI packages from tag builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch00k committed Jul 30, 2024
1 parent b3898d0 commit 06bd2e8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: test
name: ci

on:
push:
branches: [ master ]
branches:
- master
tags:
- '**'
pull_request:
branches: [ master ]
branches:
- master

jobs:
lint:
Expand Down Expand Up @@ -53,3 +57,15 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

publish:
runs-on: ubuntu-latest
name: publish
if: github.ref_type == 'tag'
needs:
- lint
- test
steps:
- run: poetry publish --build
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ ffmpy
=====
*ffmpy* is a simple `FFmpeg <http://ffmpeg.org/>`_ command line wrapper. It implements a Pythonic interface for FFmpeg command line compilation and uses Python's `subprocess <https://docs.python.org/2/library/subprocess.html>`_ to execute the compiled command line.

*ffmpy* requires Python 3.8 or greater.

Installation
------------
You guessed it::
::

pip install ffmpy

Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ ffmpy

At this moment *ffmpy* has wrappers for ``ffmpeg`` and ``ffprobe`` commands, but it should be possible to run other FFmpeg tools with it (e.g. ``ffserver``).

*ffmpy* requires Python 3.8 or greater.

Installation
------------
::
Expand Down

0 comments on commit 06bd2e8

Please sign in to comment.