Skip to content

Commit

Permalink
[CI/CD] Add PyPi release workflow to dev branch
Browse files Browse the repository at this point in the history
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 <micha@dietpi.com>
  • Loading branch information
MichaIng committed Dec 23, 2022
1 parent f4c744b commit ebeb495
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PyPI release

on: workflow_dispatch

permissions:
contents: read

jobs:
release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
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/*

2 changes: 1 addition & 1 deletion motioneye/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.43.0"
VERSION = "0.43.0a1"

0 comments on commit ebeb495

Please sign in to comment.