File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,12 +120,18 @@ jobs:
120120 user : __token__
121121 password : ${{ secrets.PYPI_TOKEN }}
122122
123+ - name : Check if pre-release
124+ id : check_prerelease
125+ run : |
126+ if echo "${{ github.ref_name }}" | grep -qE '(a|b|rc)[0-9]+$'; then
127+ echo "prerelease=true" >> "$GITHUB_OUTPUT"
128+ else
129+ echo "prerelease=false" >> "$GITHUB_OUTPUT"
130+ fi
131+
123132 - name : Create the release
124- id : create_release
125- uses : actions/create-release@v1
126- env :
127- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
133+ uses : softprops/action-gh-release@v2
128134 with :
129- tag_name : ${{ github.ref }}
130- release_name : Release ${{ github.ref }}
135+ generate_release_notes : true
136+ prerelease : ${{ steps.check_prerelease.outputs.prerelease == 'true' }}
131137
Original file line number Diff line number Diff line change 1- VERSION := $(shell ./setup.py --version )
1+ VERSION := $(shell uv run python -c "import rule_engine; print(rule_engine.__version__) " )
22
33.PHONY : build
44build :
5- python setup.py build sdist
5+ uv build
66
77.PHONY : clean
88clean :
99 rm -rf build dist
1010
1111.PHONY : docs
1212docs :
13- pipenv install --dev
14- pipenv run sphinx-build -b html -a -E -v docs/source docs/html
13+ uv sync --group dev
14+ uv run sphinx-build -b html -a -E -v docs/source docs/html
1515
1616.PHONY : release
1717release : build
Original file line number Diff line number Diff line change 3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131#
3232
33- __version__ = '5.0.0-alpha '
33+ __version__ = '5.0.0a1 '
3434
3535from .engine import resolve_attribute
3636from .engine import resolve_item
You can’t perform that action at this time.
0 commit comments