27 Zeilen
497 B
Makefile
27 Zeilen
497 B
Makefile
VERSION := $(shell hatch version)
|
|
|
|
format:
|
|
black .
|
|
isort .
|
|
|
|
version:
|
|
@yq --yaml-output-grammar-version 1.2 -i -y -s --arg 'version' "${VERSION}" '.[0] | (.version = $$version)' galaxy.yml
|
|
|
|
changelog: version
|
|
antsibull-changelog generate
|
|
|
|
docs: format
|
|
update-doc
|
|
|
|
clean-dist:
|
|
rm -rf dist
|
|
|
|
hatch-release: clean-dist version
|
|
hatch build
|
|
|
|
galaxy-release: clean-dist changelog version
|
|
ansible-galaxy collection build --output-path dist/galaxy
|
|
|
|
upload: galaxy-release hatch-release
|
|
./upload.sh
|