Skip to content

Commit

Permalink
release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sil3ntStorm committed Feb 21, 2021
1 parent 645cae7 commit aa77c1b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/make_release.py export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
9 changes: 9 additions & 0 deletions make_release.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env python3
import json, sys, subprocess

data = {}
with open('info.json', 'r', encoding='utf-8') as f:
data = json.load(f)

subprocess.check_call(['git', 'tag', 'v{}'.format(data['version'])])
subprocess.check_call(['git', 'archive', '--prefix={}_{}/'.format(data['name'], data['version']), '--output=releases/{}_{}.zip'.format(data['name'], data['version']), 'v{}'.format(data['version'])])

0 comments on commit aa77c1b

Please sign in to comment.