Skip to content

hyphenate (#16)

hyphenate (#16) #12

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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
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@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
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@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
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 }}