Skip to content

Commit bd2e41e

Browse files
committed
ci: release-brxt workflow
1 parent 96172ea commit bd2e41e

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/release-brxt.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release .brxt
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_tag:
7+
description: ".brxt release tag (e.g. v0.1.0-rc1)"
8+
required: true
9+
10+
jobs:
11+
release:
12+
name: Build and publish .brxt
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.11"
20+
- name: Verify release_manifest.json has no placeholder SHAs
21+
run: |
22+
if grep -q "PLACEHOLDER_FILLED_AT_RELEASE" src/codegraphagent/release_manifest.json; then
23+
echo "::error::release_manifest.json still contains PLACEHOLDER_FILLED_AT_RELEASE values."
24+
echo "Run Task L2 to update SHAs before releasing the .brxt."
25+
exit 1
26+
fi
27+
- name: Build .brxt
28+
run: bash scripts/build-brxt.sh
29+
- name: Create GitHub Release
30+
env:
31+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
run: |
33+
gh release create "${{ inputs.release_tag }}" \
34+
--title "CodeGraphAgent ${{ inputs.release_tag }}" \
35+
--notes-file CHANGELOG.md \
36+
codegraphagent.brxt

0 commit comments

Comments
 (0)