mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-11-04 21:22:43 +08:00
Create pypi-publish.yml
This commit is contained in:
parent
75ef2a2e8e
commit
9fe5c10d2f
27
.github/workflows/pypi-publish.yml
vendored
Normal file
27
.github/workflows/pypi-publish.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Publish Python 🐍 distributions 📦 to PyPI
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-n-publish:
|
||||
name: Use PDM to Build and publish Python 🐍 distributions 📦 to PyPI
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
# IMPORTANT: this permission is mandatory for trusted publishing
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Setup PDM
|
||||
uses: pdm-project/setup-pdm@v4
|
||||
|
||||
- name: Build and Publish distribution 📦 to PyPI
|
||||
run: pdm publish
|
||||
Loading…
Reference in New Issue
Block a user