-
Notifications
You must be signed in to change notification settings - Fork 278
39 lines (36 loc) · 940 Bytes
/
pypipublish.yml
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
38
39
name: Upload Python Package to PyPi.org
on:
release:
types: [published]
jobs:
build-package:
name: Build & verify package
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
with:
attest-build-provenance-github: 'true'
deploy:
name: Publish to pypi.org
environment:
name: pypi
url: https://pypi.org/project/emoji/
runs-on: ubuntu-latest
needs: build-package
permissions:
id-token: write
attestations: write
steps:
- name: Download package built by build-and-inspect-python-package
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Upload package to PyPI
uses: pypa/[email protected]