Skip to content

Commit 33250f4

Browse files
Update documentation and CI/CD workflows for PyPI publishing (#23)
* chores: fix mkdocs to avoid upgrade to version 2.0 * docs: update all the documentation with current implementation * cicd: add workflow for publishing in pypi * cicd: add workflow to testability in TestPyPI * cicd: remove pipy environment to keep zero warnings off in this release
1 parent 355a802 commit 33250f4

2 files changed

Lines changed: 34 additions & 3 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ permissions:
1212
jobs:
1313
build-and-publish:
1414
runs-on: ubuntu-latest
15-
environment:
16-
name: pypi
17-
url: https://pypi.org/p/pkg_infra
1815
steps:
1916
- uses: actions/checkout@v4
2017

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish to TestPyPI
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
jobs:
11+
build-and-publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v5
22+
23+
- name: Build distributions
24+
run: uv build
25+
26+
- name: Check package metadata
27+
run: |
28+
python -m pip install twine
29+
twine check dist/*
30+
31+
- name: Publish to TestPyPI
32+
uses: pypa/gh-action-pypi-publish@release/v1
33+
with:
34+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)