-
Notifications
You must be signed in to change notification settings - Fork 12
26 lines (26 loc) · 813 Bytes
/
Copy pathpublish.yml
File metadata and controls
26 lines (26 loc) · 813 Bytes
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
name: "CI"
on:
release:
types:
- published
jobs:
publish:
name: "📦 Publish Python distributions"
runs-on: "ubuntu-latest"
environment: "publish"
permissions:
id-token: write
steps:
- uses: "actions/checkout@master"
- name: "🐍 Set up Python ${{ matrix.python-version }}"
uses: "actions/setup-python@v2"
with:
python-version: "3.12"
- name: "🐍 Display Python version"
run: "python --version"
- name: "🐍 Install wheel"
run: "python -m pip install setuptools wheel --user"
- name: "🐍 Build a binary wheel and a source tarball"
run: "python setup.py sdist bdist_wheel"
- name: "📦 Publish package distributions to PyPI"
uses: "pypa/gh-action-pypi-publish@release/v1"