mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 07:28:10 +08:00
commit
ad2ebc3818
5
.github/workflows/release-plugin-docs.yml
vendored
5
.github/workflows/release-plugin-docs.yml
vendored
@ -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}}
|
||||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -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}}
|
||||||
|
Loading…
Reference in New Issue
Block a user