mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-06-06 12:26:38 +00:00
👷 add release ci
This commit is contained in:
parent
389211f740
commit
b5b8ff165c
40
.github/workflows/nonebot_plugin_docs.yml
vendored
Normal file
40
.github/workflows/nonebot_plugin_docs.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: Release Nonebot Plugin Docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [ published ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
- run: npm ci
|
||||||
|
- name: Build Docs
|
||||||
|
env:
|
||||||
|
VUEPRESS_BASE: '/docs/'
|
||||||
|
run: npx vuepress build docs --dest packages/nonebot-plugin-docs/nonebot_plugin_docs/dist
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
architecture: "x64"
|
||||||
|
- name: Install Poetry
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install poetry
|
||||||
|
|
||||||
|
- name: Publish Package
|
||||||
|
run: |
|
||||||
|
export NONEBOT_VERSION=`poetry version -s`
|
||||||
|
cd packages/nonebot-plugin-docs/
|
||||||
|
poetry version $NONEBOT_VERSION
|
||||||
|
poetry build
|
||||||
|
poetry publish -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}}
|
Loading…
x
Reference in New Issue
Block a user