Skip to content

PyPI Publish: OneBot v11 #2

PyPI Publish: OneBot v11

PyPI Publish: OneBot v11 #2

name: "PyPI Publish: OneBot v11"
on:
workflow_dispatch: {}
push:
tags:
- "onebot/v11-v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
name: Ensure Python Runtime
with:
python-version: "3.x"
architecture: "x64"
- name: Ensure PDM & twine
run: |
python3 -m pip install pdm twine pdm-mina mina-build
- name: Build Package
run: |
pdm mina build onebot-v11
- name: Publish to PyPI
run: |
twine upload dist/* --non-interactive -u __token__ -p ${{ secrets.PYPI_TOKEN }}