Skip to content

Commit 3210ce7

Browse files
fix build-and-publish
1 parent a0e206a commit 3210ce7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ build: clean-build ## Build wheel file using poetry
3131
clean-build: ## clean build artifacts
3232
@rm -rf dist
3333

34+
.PHONY: publish
35+
publish: ## publish a release to pypi.
36+
@echo "🚀 Publishing: Dry run."
37+
@poetry config pypi-token.pypi $(PYPI_TOKEN)
38+
@poetry publish --dry-run
39+
@echo "🚀 Publishing."
40+
@poetry publish
41+
42+
.PHONY: build-and-publish
43+
build-and-publish: build publish ## Build and publish.
44+
3445
.PHONY: docs-test
3546
docs-test: ## Test if documentation can be built without warnings or errors
3647
@poetry run sphinx-build ./docs ./docs/_build $(O)

0 commit comments

Comments
 (0)