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
name: Upload Python Package to PyPI when a Release is Created
1
+
# This workflow 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
+
4
+
name: Upload Python Package
2
5
3
6
on:
4
7
release:
5
8
types: [created]
6
9
7
10
jobs:
8
-
pypi-publish:
9
-
name: Publish release to PyPI
11
+
deploy:
12
+
10
13
runs-on: ubuntu-latest
11
-
environment:
12
-
name: pypi
13
-
url: https://pypi.org/p/Better-MD
14
-
permissions:
15
-
id-token: write
14
+
16
15
steps:
17
-
- uses: actions/checkout@v4
18
-
- name: Set up Python
19
-
uses: actions/setup-python@v4
20
-
with:
21
-
python-version: "3.x"
22
-
- name: Install dependencies
23
-
run: |
24
-
python -m pip install --upgrade pip
25
-
pip install setuptools wheel
26
-
- name: Build package
27
-
run: |
28
-
python setup.py sdist bdist_wheel # Could also be python -m build
0 commit comments