🔀 Merge pull request #668

CI: Fix build upload error
This commit is contained in:
Ju4tCode 2022-01-08 16:55:00 +08:00 committed by GitHub
commit ad2ebc3818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: "3.9"
architecture: "x64" architecture: "x64"
- uses: Gr1N/setup-poetry@v7 - uses: Gr1N/setup-poetry@v7
@ -50,7 +50,8 @@ jobs:
- name: Publish Package - name: Publish Package
run: | run: |
export NONEBOT_VERSION=`poetry version -s`
cd packages/nonebot-plugin-docs/ cd packages/nonebot-plugin-docs/
poetry version $(poetry version -s) poetry version $NONEBOT_VERSION
poetry build poetry build
poetry publish -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}} poetry publish -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}}

View File

@ -15,7 +15,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: "3.9"
architecture: "x64" architecture: "x64"
- uses: Gr1N/setup-poetry@v7 - uses: Gr1N/setup-poetry@v7
@ -63,6 +63,6 @@ jobs:
git add . git add .
git commit -m ":bookmark: Release $(poetry version -s)" git commit -m ":bookmark: Release $(poetry version -s)"
git tag v$(poetry version -s) git tag v$(poetry version -s)
git push --tags git push --follow-tags
poetry build poetry build
poetry publish -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}} poetry publish -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}}