diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 81e1d1663..2fb4afcd7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,9 +3,9 @@ name: 插件构建发布 on: push: branches: - - "**" + - '**' tags-ignore: - - "V1.0.0.0" + - 'V1.0.0.0' pull_request: jobs: diff --git a/scripts/ForumHelper.py b/scripts/ForumHelper.py index 629ccb872..5fb019882 100644 --- a/scripts/ForumHelper.py +++ b/scripts/ForumHelper.py @@ -29,7 +29,7 @@ "text": md })).text -def login(session: Session, url: str): +def login(session: rq.Session, url: str): resp = session.get(url) soup = BeautifulSoup(resp.text, 'html.parser') data_csrf = soup.html['data-csrf'] diff --git a/scripts/GiteeSync.py b/scripts/GiteeSync.py index ddde3b384..597ad29d2 100644 --- a/scripts/GiteeSync.py +++ b/scripts/GiteeSync.py @@ -9,7 +9,7 @@ 'Authorization': f'token {gitee_token}' } files = { - 'file': open('bin/Plugins.zip', 'rb') + 'file': open('out/Plugins.zip', 'rb') } attachments = requests.get(f"https://gitee.com/api/v5/repos/{owner}/{repo}/releases/{release_id}/attach_files?&page=1&per_page=100&direction=asc",headers=headers).json() for attachment in attachments: