Skip to content

Commit 4090e89

Browse files
feat(ci): add metrics collection to release workflow
Collect repo metrics at release time and upload metrics.json as a release asset. The metrics job runs in parallel with the build, then upload-metrics appends metrics.json to the GitHub Release once both the release and metrics collection are complete. Ref: Phase 5 Session B CI governance hardening.
1 parent a8a8f07 commit 4090e89

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ env:
1212
VCPKG_COMMIT: "66c0373dc7fca549e5803087b9487edfe3aca0a1"
1313

1414
jobs:
15+
metrics:
16+
name: Collect metrics
17+
uses: anolishq/.github/.github/workflows/metrics.yml@v1
18+
with:
19+
tag: ${{ github.ref_name }}
20+
1521
release-linux-x86_64:
1622
name: Release (linux-x86_64)
1723
runs-on: ubuntu-24.04
@@ -105,3 +111,19 @@ jobs:
105111
SHA256SUMS
106112
manifest.json
107113
generate_release_notes: true
114+
115+
upload-metrics:
116+
name: Upload metrics to release
117+
runs-on: ubuntu-24.04
118+
needs: [release-linux-x86_64, metrics]
119+
steps:
120+
- name: Download metrics artifact
121+
uses: actions/download-artifact@v4
122+
with:
123+
name: metrics-${{ github.event.repository.name }}-${{ github.run_number }}
124+
path: metrics-out/
125+
126+
- name: Upload metrics.json to release
127+
uses: softprops/action-gh-release@v2
128+
with:
129+
files: metrics-out/metrics.json

0 commit comments

Comments
 (0)