Skip to content

feat(jtk): detect attachment MIME type and add --filename override fo… #124

feat(jtk): detect attachment MIME type and add --filename override fo…

feat(jtk): detect attachment MIME type and add --filename override fo… #124

Workflow file for this run

name: Release jtk
# Triggered by the jtk-v* release tag that auto-release-jtk.yml mints (or a
# manual tag push). Builds with GoReleaser on macOS (CGO darwin can't
# cross-compile), gates the Keychain backend via the manifest keychain_probe,
# publishes the GitHub release, then fans out to the packaging channels
# tools/jtk/packaging/identity.yml declares (homebrew cask + jira-ticket-cli
# alias, winget, chocolatey, linux). The reusable workflow handles the jtk-v
# prefix≠v temp-tag/rename dance and renders the jira-ticket-cli alias cask via
# its homebrew-alias step (replacing the old sed in this file). The old inline
# goreleaser/darwin-gate/rename/sed-alias/trigger-publish jobs are replaced by
# the reusable's manifest-driven jobs.
on:
push:
tags:
- "jtk-v*"
workflow_dispatch:
inputs:
dry-run:
description: "Build + render but skip publishing (only meaningful from a jtk-v tag ref)"
type: boolean
default: true
# The reusable workflow's goreleaser job publishes the release via GITHUB_TOKEN.
permissions:
contents: write
jobs:
release:
uses: open-cli-collective/.github/.github/workflows/release.yml@v1
with:
working-directory: tools/jtk
# tag push is live (false); workflow_dispatch honors the checkbox. Compare
# against both true and 'true' because a workflow_dispatch boolean input
# may surface as a real boolean or the string "true" depending on context.
dry-run: ${{ github.event_name == 'workflow_dispatch' && (inputs.dry-run == true || inputs.dry-run == 'true') }}
secrets:
homebrew-tap-token: ${{ secrets.TAP_GITHUB_TOKEN }}
chocolatey-api-key: ${{ secrets.CHOCOLATEY_API_KEY }}
winget-token: ${{ secrets.WINGET_GITHUB_TOKEN }}
linux-dispatch-token: ${{ secrets.LINUX_PACKAGES_DISPATCH_TOKEN }}
macos-cert-p12: ${{ secrets.MACOS_CERT_P12 }}
macos-cert-password: ${{ secrets.MACOS_CERT_PASSWORD }}
macos-cert-cn: ${{ secrets.MACOS_CERT_CN }}
macos-cert-leaf-sha: ${{ secrets.MACOS_CERT_LEAF_SHA }}