Skip to content

chore: release v0.10.0 #56

chore: release v0.10.0

chore: release v0.10.0 #56

Workflow file for this run

# Runs when a release/* PR is merged to main. Runs CI as a final check, then
# creates and pushes version tags. The pushed root tag (v*) triggers the
# Release workflow which runs goreleaser and indexes the Go proxy.
name: Tag Release
on:
pull_request:
types: [closed]
branches: [main]
permissions:
contents: write
jobs:
tag:
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')
runs-on: ubuntu-24.04
steps:
- name: Extract version from branch name
id: version
run: |
BRANCH="${{ github.event.pull_request.head.ref }}"
echo "version=${BRANCH#release/}" >> "$GITHUB_OUTPUT"
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
with:
app-id: ${{ secrets.BRAINTRUST_BOT_APP_ID }}
private-key: ${{ secrets.BRAINTRUST_BOT_PRIVATE_KEY }}
- name: Checkout main
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{ steps.app-token.outputs.token }}
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.work
- name: Install golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: v2.11.4
- name: Install orchestrion
env:
GOTOOLCHAIN: local
run: go install github.com/DataDog/orchestrion@v1.6.1
- name: Run CI
run: make ci
env:
CGO_ENABLED: 0
GOTOOLCHAIN: local
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
BRAINTRUST_API_KEY: ${{ secrets.BRAINTRUST_API_KEY }}
- name: Configure git identity
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Create and push tags
run: ./scripts/release.sh ${{ steps.version.outputs.version }}