Selaa lähdekoodia

[U] Update deploy script

Hykilpikonna 2 vuotta sitten
vanhempi
commit
8235a400f0
3 muutettua tiedostoa jossa 11 lisäystä ja 2 poistoa
  1. 3 1
      README.md
  2. 1 1
      tools/accept_upstream.py
  3. 7 0
      tools/deploy-release.py

+ 3 - 1
README.md

@@ -90,7 +90,7 @@ Updates to `neowofetch` begins with the emoji 🖼️
 
 <!-- CHANGELOG STARTS HERE --->
 
-### 1.4.4
+### Unpublished 1.4.5
 
 Note: You can install the latest nightly version by using:
 
@@ -98,6 +98,8 @@ Note: You can install the latest nightly version by using:
 pip install git+https://github.com/hykilpikonna/hyfetch.git@master
 ```
 
+### 1.4.4
+
 * 🌈 Fix Python 3.11 compatibility (#35)
 * 🌈 Fix many overflow problems when screen is too small 
 * 🖼️ Distro - Add Enso ([dylanaraps#2233](https://github.com/dylanaraps/neofetch/pull/2233))

+ 1 - 1
tools/accept_upstream.py

@@ -96,7 +96,7 @@ if __name__ == '__main__':
 
     # Push
     print()
-    print('Pushing...')
+    assert input('Push? [Enter/N]') == ""
     os.system('git push')
 
     copy_comment()

+ 7 - 0
tools/deploy-release.py

@@ -16,6 +16,9 @@ from tools.list_distros import generate_help
 from tools.reformat_readme import reformat_readme
 
 
+NEOFETCH_NEW_VERSION = ""
+
+
 def pre_check():
     """
     Check source code status before releasing.
@@ -72,6 +75,9 @@ def edit_versions(version: str):
     lines[version_i] = f"version={nf}"
     path.write_text('\n'.join(lines))
 
+    global NEOFETCH_NEW_VERSION
+    NEOFETCH_NEW_VERSION = nf
+
 
 def finalize_neofetch():
     """
@@ -117,6 +123,7 @@ def create_release(v: str):
 
     # 3. Create tag
     subprocess.check_call(['git', 'tag', v])
+    subprocess.check_call(['git', 'tag', f'neofetch-{NEOFETCH_NEW_VERSION}'])
 
     i = input('Please check the commit is correct. Press y to continue or any other key to cancel.')
     assert i == 'y'