You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will upload a Python Package to PyPI when a release is created
2
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+
# This workflow uses actions that are not certified by GitHub.
5
+
# They are provided by a third-party and are governed by
6
+
# separate terms of service, privacy policy, and support
7
+
# documentation.
8
+
9
+
name: Publish to PyPI
10
+
11
+
on:
12
+
workflow_dispatch:
13
+
release:
14
+
types: [ published ]
15
+
16
+
permissions:
17
+
contents: read
18
+
19
+
jobs:
20
+
build-and-inspect-package:
21
+
name: Build & inspect package.
22
+
runs-on: ubuntu-latest
23
+
24
+
steps:
25
+
- uses: actions/checkout@v4
26
+
- uses: hynek/build-and-inspect-python-package@v2
27
+
28
+
29
+
upload-to-pypi:
30
+
name: Upload package to PyPI
31
+
needs: build-and-inspect-package
32
+
runs-on: ubuntu-latest
33
+
permissions:
34
+
# IMPORTANT: this permission is mandatory for trusted publishing, but
0 commit comments