Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit c4f44c1

Browse files
Auto upload docs im build script; update version
1 parent 97175a2 commit c4f44c1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

MeowerBot/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.2.0'
1+
__version__ = '3.3.0'

build.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
import httpx
1111

1212
import shutil
13+
14+
1315
def main():
1416
if os.path.exists('.env'):
1517
load_dotenv(override=True)
1618

19+
assert os.system("npx wrangler -v") == 0, "Install Wrangler! \n npm install wrangler --global"
1720

1821
os.system("rm -rf ./build/")
1922
with open("pyproject.toml", 'rb') as f:
@@ -29,8 +32,7 @@ def main():
2932
return
3033

3134
print("Uploading docs...")
32-
# TODO: https://discord.com/channels/595317990191398933/1063191651796914276
33-
# Uploading HTML-Based Project dynamically (Docs)
35+
os.system("npx wrangler pages deploy ./build/html --project-name meowerbot --commit-dirty=true")
3436

3537

3638
print("Building MB.py...")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "MeowerBot"
3-
version = "3.2.0"
3+
version = "3.3.0"
44
description = "A meower bot lib for py"
55
authors = ["showierdata9978 <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)