Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit 1546856

Browse files
committed
An other bash script bites the dust
1 parent 326359e commit 1546856

3 files changed

Lines changed: 10 additions & 25 deletions

File tree

publish.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

tasks.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ def sphinx(c, dev=False):
5555

5656
@task(pre=[call(sphinx)])
5757
def deploy_docs(c):
58-
with c.cd("docs"):
59-
c.run("ghp-import _build/html/ -p -n -m 'ghp-import automatic commit'")
58+
c.run("ghp-import --push --force --no-jekyll docs/_build/html/")
59+
60+
61+
def publish_wheel(c):
62+
c.run("poetry publish --build")
6063

6164

6265
@task(
@@ -71,10 +74,9 @@ def lint(c):
7174
pass
7275

7376

74-
@task(
75-
pre=[
76-
call(sphinx)
77-
]
77+
@task(pre=[call(deploy_docs, publish_wheel)])
78+
def publish(c):
79+
pass
7880

7981

8082
@task

tbump.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ name = "Check Changelog"
2828
cmd = "grep -q {new_version} docs/changelog.rst"
2929

3030
[[after_push]]
31-
name = "Publish documentation and update project on Pypi"
32-
cmd = "./publish.sh"
31+
name = "Publish project"
32+
cmd = "poetry run invoke publish"

0 commit comments

Comments
 (0)