autopub 1.0.0a12__tar.gz → 1.0.0a13__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {autopub-1.0.0a12 → autopub-1.0.0a13}/PKG-INFO +1 -1
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/plugins/git.py +5 -2
- {autopub-1.0.0a12 → autopub-1.0.0a13}/pyproject.toml +1 -1
- {autopub-1.0.0a12 → autopub-1.0.0a13}/LICENSE +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/README.md +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/__init__.py +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/cli/__init__.py +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/cli/plugins.py +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/exceptions.py +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/plugins/__init__.py +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/plugins/bump_version.py +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/plugins/pdm.py +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/plugins/poetry.py +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/plugins/update_changelog.py +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/py.typed +0 -0
- {autopub-1.0.0a12 → autopub-1.0.0a13}/autopub/types.py +0 -0
@@ -6,13 +6,16 @@ from autopub.types import ReleaseInfo
|
|
6
6
|
|
7
7
|
class GitPlugin(AutopubPlugin):
|
8
8
|
def post_publish(self, release_info: ReleaseInfo) -> None:
|
9
|
+
tag = release_info.additional_info["new_version"]
|
10
|
+
|
9
11
|
self.run_command(["git", "config", "--global", "user.email", "autopub@autopub"])
|
10
12
|
self.run_command(["git", "config", "--global", "user.name", "autopub"])
|
11
13
|
|
12
|
-
self.run_command(["git", "tag",
|
14
|
+
self.run_command(["git", "tag", tag])
|
13
15
|
|
14
16
|
# TODO: config?
|
15
17
|
self.run_command(["git", "rm", "RELEASE.md"])
|
16
18
|
self.run_command(["git", "add", "--all", "--", ":!main/.autopub"])
|
17
19
|
self.run_command(["git", "commit", "-m", "🤖 autopub publish"])
|
18
|
-
self.run_command(["git", "push"
|
20
|
+
self.run_command(["git", "push"])
|
21
|
+
self.run_command(["git", "push", tag])
|
@@ -3,7 +3,7 @@ requires-python = ">=3.8"
|
|
3
3
|
|
4
4
|
[tool.poetry]
|
5
5
|
name = "autopub"
|
6
|
-
version = "1.0.0-alpha.
|
6
|
+
version = "1.0.0-alpha.13"
|
7
7
|
description = "Automatic package release upon pull request merge"
|
8
8
|
authors = ["Justin Mayer <entroP@gmail.com>", "Patrick Arminio <patrick.arminio@gmail.com>"]
|
9
9
|
license = "AGPL-3.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|