chore: rename tap and releases (#34) #13
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 | |
| 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-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-cli | |
| homebrew-tap | |
| app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }} | |
| private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }} | |
| - name: Extract skill version | |
| run: echo "SKILL_VERSION=$(./scripts/skill-version.sh)" >> "$GITHUB_ENV" | |
| - 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-cli.rb to airbytehq/homebrew-tap. | |
| HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }} | |
| # Skill version stamped into the binary via cmd.ExpectedSkillVersion. | |
| # Sourced from skills/airbyte-agents/SKILL.md by the previous step. | |
| SKILL_VERSION: ${{ env.SKILL_VERSION }} |