Skip to content

Commit ba8cc45

Browse files
author
Diogo Andre Passagem Santos
committed
Merge remote-tracking branch 'origin/main' into copilot/fix-stale-issues-and-fill-coverage-gaps
# Conflicts: # CHANGELOG.md
2 parents 73e3f19 + 51198b4 commit ba8cc45

3 files changed

Lines changed: 49 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ jobs:
99
name: "CI gate"
1010
uses: ./.github/workflows/ci.yml
1111

12-
publish:
13-
name: "Build & publish"
12+
build:
13+
name: "Build"
1414
needs: ci
1515
runs-on: ubuntu-latest
16-
environment: pypi
1716
permissions:
18-
contents: read # required for actions/checkout
19-
id-token: write # required for Trusted Publisher (OIDC)
17+
contents: read
2018
steps:
2119
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2220

@@ -31,5 +29,46 @@ jobs:
3129
- name: Build sdist and wheel
3230
run: python -m build
3331

32+
- name: Upload dist artifacts
33+
uses: actions/upload-artifact@ea165f8d65b6db9a6b7c67862cd61e31b2b2b817 # v4.6.2
34+
with:
35+
name: dist
36+
path: dist/
37+
38+
release:
39+
name: "GitHub Release"
40+
needs: build
41+
runs-on: ubuntu-latest
42+
permissions:
43+
contents: write # required to create releases
44+
steps:
45+
- name: Download dist artifacts
46+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
47+
with:
48+
name: dist
49+
path: dist/
50+
51+
- name: Create GitHub Release
52+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
53+
with:
54+
generate_release_notes: true
55+
fail_on_unmatched_files: true
56+
files: dist/*
57+
58+
publish:
59+
name: "Publish to PyPI"
60+
needs: release
61+
runs-on: ubuntu-latest
62+
environment: pypi
63+
permissions:
64+
contents: read
65+
id-token: write # required for Trusted Publisher (OIDC)
66+
steps:
67+
- name: Download dist artifacts
68+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
69+
with:
70+
name: dist
71+
path: dist/
72+
3473
- name: Publish to PyPI
3574
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
- GitHub Release step in publish workflow — creates a release with auto-generated notes and artifacts before publishing to PyPI.
12+
1013
### Fixed
1114
- `HTTPDriver`: DELETE requests now forward args as query params instead of silently dropping them.
1215

RELEASE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ Pushing the `v*` tag triggers `.github/workflows/publish.yml`, which:
5353

5454
1. Runs the full CI suite (`make ci` equivalent) as a gate.
5555
2. Builds the sdist and wheel with `python -m build`.
56-
3. Publishes to PyPI using Trusted Publisher (OIDC — no API tokens stored).
56+
3. Creates a GitHub Release with auto-generated notes and the built artifacts attached.
57+
4. Publishes to PyPI using Trusted Publisher (OIDC — no API tokens stored).
5758

5859
Monitor the workflow run at:
5960
<https://github.com/dgenio/agent-kernel/actions/workflows/publish.yml>

0 commit comments

Comments
 (0)