Skip to content

Commit 2369495

Browse files
committed
feat(ci): auto-create github releases on version merge
1 parent 56bc809 commit 2369495

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,30 @@ jobs:
278278
if: needs.check-docs-changes.outputs.docs_changed == 'true'
279279
uses: ./.github/workflows/docs-embeddings.yml
280280
secrets: inherit
281+
282+
# Create GitHub Release (only for version commits on main, after all builds complete)
283+
create-release:
284+
name: Create GitHub Release
285+
runs-on: blacksmith-4vcpu-ubuntu-2404
286+
needs: [create-ghcr-manifests, detect-version]
287+
if: needs.detect-version.outputs.is_release == 'true'
288+
permissions:
289+
contents: write
290+
steps:
291+
- name: Checkout code
292+
uses: actions/checkout@v4
293+
with:
294+
fetch-depth: 0
295+
296+
- name: Setup Bun
297+
uses: oven-sh/setup-bun@v2
298+
with:
299+
bun-version: latest
300+
301+
- name: Install dependencies
302+
run: bun install --frozen-lockfile
303+
304+
- name: Create release
305+
env:
306+
GH_PAT: ${{ secrets.GITHUB_TOKEN }}
307+
run: bun run scripts/create-single-release.ts ${{ needs.detect-version.outputs.version }}

0 commit comments

Comments
 (0)