From 92fd6fb66985a2398884119185b9d4fcc8262e9e Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Sat, 8 Jan 2022 16:49:50 +0800 Subject: [PATCH] :construction_worker: fix ci build --- .github/workflows/release-plugin-docs.yml | 5 +++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-plugin-docs.yml b/.github/workflows/release-plugin-docs.yml index df784236..84fa8189 100644 --- a/.github/workflows/release-plugin-docs.yml +++ b/.github/workflows/release-plugin-docs.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: "3.9" architecture: "x64" - uses: Gr1N/setup-poetry@v7 @@ -50,7 +50,8 @@ jobs: - name: Publish Package run: | + export NONEBOT_VERSION=`poetry version -s` cd packages/nonebot-plugin-docs/ - poetry version $(poetry version -s) + poetry version $NONEBOT_VERSION poetry build poetry publish -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 219bfbda..2fa280e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: "3.9" architecture: "x64" - uses: Gr1N/setup-poetry@v7 @@ -63,6 +63,6 @@ jobs: git add . git commit -m ":bookmark: Release $(poetry version -s)" git tag v$(poetry version -s) - git push --tags + git push --follow-tags poetry build poetry publish -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}}