feat(ci): add Forgejo PyPI publish workflow and make target
Adds publish-forgejo and a workflow_dispatch/tag workflow so issue-core 0.2.x can be published to forgejo.coulomb.social before vergabe-teilnahme drops Gitea lockfile URLs.
This commit is contained in:
parent
36ed581d89
commit
d030c20dff
2 changed files with 52 additions and 0 deletions
11
Makefile
11
Makefile
|
|
@ -66,6 +66,7 @@ ISSUE_CLI := $(shell command -v issue 2> /dev/null)
|
|||
PYTHON ?= python3
|
||||
GITEA_PACKAGE_OWNER ?= coulomb
|
||||
GITEA_PYPI_REPOSITORY_URL ?= https://gitea.coulomb.social/api/packages/$(GITEA_PACKAGE_OWNER)/pypi
|
||||
FORGEJO_PYPI_REPOSITORY_URL ?= https://forgejo.coulomb.social/api/packages/$(GITEA_PACKAGE_OWNER)/pypi
|
||||
|
||||
# Core Issue Operations
|
||||
.PHONY: issue-list
|
||||
|
|
@ -238,6 +239,16 @@ ifndef TWINE_PASSWORD
|
|||
endif
|
||||
$(PYTHON) -m twine upload --repository-url "$(GITEA_PYPI_REPOSITORY_URL)" dist/*
|
||||
|
||||
.PHONY: publish-forgejo
|
||||
publish-forgejo: package-check ## Publish distributions to the Coulomb Forgejo PyPI registry
|
||||
ifndef TWINE_USERNAME
|
||||
$(error TWINE_USERNAME is required)
|
||||
endif
|
||||
ifndef TWINE_PASSWORD
|
||||
$(error TWINE_PASSWORD is required)
|
||||
endif
|
||||
$(PYTHON) -m twine upload --repository-url "$(FORGEJO_PYPI_REPOSITORY_URL)" dist/*
|
||||
|
||||
# Feedback and Continuous Improvement
|
||||
.PHONY: feedback
|
||||
feedback: ## Submit feedback (Usage: make feedback MSG="your feedback")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue