-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (30 loc) · 851 Bytes
/
cd.yaml
File metadata and controls
37 lines (30 loc) · 851 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
27
28
29
30
31
32
33
34
35
36
37
name: CD
on:
release:
types: [published]
jobs:
publish-to-pypi:
name: Build distribution 📦
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Check out Repo
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Python from pyproject.toml
uses: ./.github/actions/python_from_pyproject
- name: Install build
run: >-
pip install build==1.2.2.post1
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Publish distribution 📦 to PyPI
env:
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.release.tag_name }}
with:
packages-dir: dist/
repository-url: https://pypi.org/legacy/
uses: pypa/gh-action-pypi-publish@release/v1