release: v0.6.0 — ingest force, sidecar search, cost & insights #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: false | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| release: | |
| name: Create GitHub Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Run tests | |
| run: bun test test/ | |
| - name: Compute release metadata from conventional commits | |
| id: meta | |
| run: | | |
| bun run scripts/release-meta.ts \ | |
| --current-tag "${GITHUB_REF_NAME}" \ | |
| --to "${GITHUB_SHA}" \ | |
| --github-output "$GITHUB_OUTPUT" | |
| - name: Validate tag matches semantic bump | |
| run: | | |
| EXPECTED="${{ steps.meta.outputs.next_version }}" | |
| ACTUAL="${GITHUB_REF_NAME}" | |
| if [ "$EXPECTED" != "$ACTUAL" ]; then | |
| echo "Tag/version mismatch: expected ${EXPECTED}, got ${ACTUAL}" | |
| exit 1 | |
| fi | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| body: ${{ steps.meta.outputs.release_notes }} | |
| generate_release_notes: false | |
| draft: false | |
| prerelease: ${{ contains(github.ref_name, '-') }} |