Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ba012f08c | ||
|
|
74a0d2e01f | ||
|
|
eba9c04e02 |
@@ -1,12 +1,12 @@
|
||||
name: Release
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
checks:
|
||||
name: Checks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
@@ -26,6 +26,21 @@ jobs:
|
||||
|
||||
- run: pytest
|
||||
|
||||
publish:
|
||||
name: Publish to PyPI registry
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
needs: checks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- uses: https://github.com/actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install build dependencies
|
||||
run: pip install ".[dev]" build twine
|
||||
|
||||
- name: Set package version from the tag
|
||||
run: sed -i "s/^__version__ = .*/__version__ = \"${GITHUB_REF_NAME#v}\"/" src/openrgb_hue/__init__.py
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from openrgb_hue.color import Color
|
||||
from openrgb_hue.gradient import Gradient, Stop
|
||||
|
||||
__version__ = "0.1.0"
|
||||
__version__ = "1.0.1"
|
||||
|
||||
__all__ = ["Color", "Gradient", "Stop", "__version__"]
|
||||
|
||||
Reference in New Issue
Block a user