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 workflows will upload a Python Package using Twine when a release is created
2
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
+
name: Upload Python Package
4
+
5
+
on:
6
+
release:
7
+
types: [created]
8
+
9
+
jobs:
10
+
build:
11
+
name: Build distribution 📦
12
+
runs-on: ubuntu-latest
13
+
14
+
steps:
15
+
- uses: actions/checkout@v4
16
+
- name: Set up Python
17
+
uses: actions/setup-python@v5
18
+
with:
19
+
python-version: "3.x"
20
+
- name: Install pypa/build
21
+
run: >-
22
+
python3 -m
23
+
pip install
24
+
build
25
+
--user
26
+
- name: Build a binary wheel and a source tarball
27
+
run: python3 -m build
28
+
- name: Store the distribution packages
29
+
uses: actions/upload-artifact@v4
30
+
with:
31
+
name: python-package-distributions
32
+
path: dist/
33
+
34
+
deploy:
35
+
permissions:
36
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
0 commit comments