forked from lgc-NB2Dev/nonebot-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 836 Bytes
/
Copy pathrelease.yml
File metadata and controls
37 lines (32 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Release
on:
push:
tags:
- 'v*'
jobs:
call-template:
name: Call reusable template release
uses: LuoChu-NB2Dev/.github/.github/workflows/release.yml@master
permissions:
contents: write
pull-requests: write
publish-pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
needs: call-template
environment:
name: pypi
url: https://pypi.org/p/nonebot-plugin-example/
permissions:
id-token: write
contents: write
steps:
- name: Download dist artifacts from reusable workflow
uses: actions/download-artifact@v7
with:
name: dist
path: ./dist
- name: List downloaded files
run: ls -l ./dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1