Skip to content

Commit 4d38b05

Browse files
authored
Create release.yml
1 parent 1ef3125 commit 4d38b05

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
pypi-publish:
8+
name: Upload release to PyPI
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/<your-pypi-project-name>
13+
permissions:
14+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
15+
steps:
16+
- uses: actions/checkout@master
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: '3.10'
21+
- name: Install pypa/setuptools
22+
run: >-
23+
python -m
24+
pip install wheel
25+
- name: Build a binary wheel
26+
run: >-
27+
python setup.py sdist bdist_wheel
28+
- name: Publish package distributions to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)