2024-04-23 07:17:14 +00:00
|
|
|
name: publish-winget
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2025-01-09 12:07:29 +00:00
|
|
|
inputs:
|
|
|
|
tag:
|
|
|
|
description: 'Tag to publish'
|
|
|
|
default: ''
|
2024-04-23 07:17:14 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish-to-winget-pkgs:
|
2025-01-09 11:21:30 +00:00
|
|
|
runs-on:
|
|
|
|
group: databricks-protected-runner-group
|
|
|
|
labels: windows-server-latest
|
|
|
|
|
2024-04-23 07:17:14 +00:00
|
|
|
environment: release
|
2025-01-09 11:21:30 +00:00
|
|
|
|
2024-04-23 07:17:14 +00:00
|
|
|
steps:
|
2025-01-14 07:39:34 +00:00
|
|
|
- uses: vedantmgoyal2009/winget-releaser@93fd8b606a1672ec3e5c6c3bb19426be68d1a8b0 # v2
|
2024-04-23 07:17:14 +00:00
|
|
|
with:
|
|
|
|
identifier: Databricks.DatabricksCLI
|
|
|
|
installers-regex: 'windows_.*-signed\.zip$' # Only signed Windows releases
|
|
|
|
token: ${{ secrets.ENG_DEV_ECOSYSTEM_BOT_TOKEN }}
|
|
|
|
fork-user: eng-dev-ecosystem-bot
|
2025-01-09 12:07:29 +00:00
|
|
|
|
|
|
|
# Use the tag from the input, or the ref name if the input is not provided.
|
|
|
|
# The ref name is equal to the tag name when this workflow is triggered by the "sign-cli" command.
|
|
|
|
release-tag: ${{ inputs.tag || github.ref_name }}
|