From d39fd8f092a8e0c6a80039d909e1bd0c310cef3a Mon Sep 17 00:00:00 2001 From: MichaIng Date: Fri, 23 Dec 2022 06:44:19 +0100 Subject: [PATCH] [CI/CD] Add PyPi release workflow to dev branch and apply alpha "a1" version suffix while testing build and upload to testpypi. When this works well, beta releases can be done with "bX" suffix to real PyPI, from a new beta branch. Signed-off-by: MichaIng --- .github/workflows/pypi_release.yml | 25 +++++++++++++++++++++++++ motioneye/__init__.py | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pypi_release.yml diff --git a/.github/workflows/pypi_release.yml b/.github/workflows/pypi_release.yml new file mode 100644 index 000000000..2594c12fb --- /dev/null +++ b/.github/workflows/pypi_release.yml @@ -0,0 +1,25 @@ +name: PyPI release + +on: workflow_dispatch + +permissions: + contents: read + +jobs: + release: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + check-latest: true + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + python -m pip install --upgrade build twine + - name: Build package + run: python -m build + - name: Publish package + run: twine upload -r testpypi -u '__token__' -p '${{ secrets.TEST_PYPI_API_TOKEN }}' dist/* + #run: twine upload -r pypi -u '__token__' -p '${{ secrets.PYPI_TOKEN }}' dist/* diff --git a/motioneye/__init__.py b/motioneye/__init__.py index 281f16d33..570361c6c 100644 --- a/motioneye/__init__.py +++ b/motioneye/__init__.py @@ -1 +1 @@ -VERSION = "0.43.0" +VERSION = "0.43.1a1"