autopub 1.0.0a12__tar.gz → 1.0.0a13__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autopub
3
- Version: 1.0.0a12
3
+ Version: 1.0.0a13
4
4
  Summary: Automatic package release upon pull request merge
5
5
  Home-page: https://github.com/autopub/autopub
6
6
  License: AGPL-3.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", release_info.additional_info["new_version"]])
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", "--tags"])
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.12"
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