diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 576df90..b23eaa1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,10 +1,14 @@
-name: test
+name: ci
on:
push:
- branches: [ master ]
+ branches:
+ - master
+ tags:
+ - '**'
pull_request:
- branches: [ master ]
+ branches:
+ - master
jobs:
lint:
@@ -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 }}
diff --git a/README.rst b/README.rst
index 8808b27..4d933be 100644
--- a/README.rst
+++ b/README.rst
@@ -19,9 +19,11 @@ ffmpy
=====
*ffmpy* is a simple `FFmpeg `_ command line wrapper. It implements a Pythonic interface for FFmpeg command line compilation and uses Python's `subprocess `_ to execute the compiled command line.
+*ffmpy* requires Python 3.8 or greater.
+
Installation
------------
-You guessed it::
+::
pip install ffmpy
diff --git a/docs/index.rst b/docs/index.rst
index 8a055ee..d0c2a8e 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -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
------------
::