1
0
forked from bot/app
LiteyukiBot/.github/workflows/pypi-publish.yml
2024-08-18 03:40:06 +08:00

26 lines
542 B
YAML

name: Publish
on:
push:
branches:
- main
tags:
- '*'
workflow_dispatch:
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# 这个权限是为了私有仓库。
contents: read
# 重要提示:这个权限对于可信发布是必需的。
id-token: write
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v3
- name: Publish package distributions to PyPI
run: pdm publish --build --repository pypi