Skip to content

Commit bcdcfa5

Browse files
committed
Add GitHub Actions workflow for publishing to PyPI and update project metadata
1 parent c6241ce commit bcdcfa5

3 files changed

Lines changed: 31 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
pypi-publish:
10+
name: Publish to PyPI
11+
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: astral-sh/setup-uv@v7
17+
18+
- name: Build package
19+
run: uv build
20+
21+
- name: Publish package
22+
run: uv publish

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name = "ca-cdk-constructs"
33
version = "0.17.1"
44
description = "Shared CDK constructs"
55
requires-python = ">=3.10"
6+
license = { file = "LICENSE" }
7+
authors = [{ name = "Citizens Advice", email = "cloud.engineering@citizensadvice.org.uk" }]
68
dependencies = [
79
"aws-cdk-lib>=2.215",
810
"cdk8s>=2.70.15",
@@ -11,6 +13,12 @@ dependencies = [
1113
"aws-cdk-lambda-layer-kubectl-v34>=2.0.0",
1214
]
1315

16+
[project.urls]
17+
Homepage = "https://github.com/citizensadvice/ca-cdk-constructs"
18+
Repository = "https://github.com/matthewcane/ca-cdk-constructs"
19+
Issues = "https://github.com/citizensadvice/ca-cdk-constructs/issues"
20+
Changelog = "https://github.com/citizensadvice/ca-cdk-constructs/releases"
21+
1422
[dependency-groups]
1523
dev = [
1624
"boto3-stubs[rds, secretsmanager] >=1.40.35",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)