mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 05:17:24 +08:00
26 lines
542 B
YAML
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 |