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 <[email protected]>
  • Loading branch information
MichaIng committed Dec 24, 2023
1 parent 63a4493 commit d39fd8f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
@@ -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/*
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.1a1"

0 comments on commit d39fd8f

Please sign in to comment.