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}}