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 Jan 29, 2023
1 parent 0b4b3c1 commit 6898dca
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@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 6898dca

Please sign in to comment.