Skip to content

rename to airbyte-agent (#5) #9

rename to airbyte-agent (#5)

rename to airbyte-agent (#5) #9

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
# Mint a token for the octavia-bot GitHub App, scoped to this repo
# plus airbytehq/homebrew-tap so goreleaser can commit the brew formula
# there. Reuses the same App credentials as the sync-openapi-to-airbyte-agent-cli
# workflow in the sonar repo. Requires the App installation to grant
# `contents: write` on both repos.
- name: Authenticate as GitHub App
id: get-app-token
uses: actions/create-github-app-token@v2
with:
owner: "airbytehq"
repositories: |
airbyte-agent-cli
homebrew-tap
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean
env:
# Default token: writes the GitHub release in this repo. Goreleaser
# uploads archives, the source bundle, and the checksums file here.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Cross-repo token (App-minted): lets goreleaser commit
# Formula/airbyte-agent.rb to airbytehq/homebrew-tap.
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}