mirror of
https://github.com/microsoft/terminal.git
synced 2026-04-04 11:00:20 -04:00
- Various spelling fixes - Refresh metadata (including dictionaries) - Upgrade to v0.0.25 ## Validation Steps Performed - check-spelling has been automatically testing this repository for a while now on a daily basis to ensure that it works fairly reliably: https://github.com/check-spelling-sandbox/autotest-check-spelling/actions/workflows/microsoft-terminal-spelling2.yml Specific in-code fixes: - winget - whereas - tl;dr - set up - otherwise, - more, - macbook - its - invalid - in order to - if - if the - for this tab,... - fall back - course, - cch - aspect - archaeologists - an - all at once - a - `...` - ; otherwise, Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
28 lines
1.2 KiB
YAML
28 lines
1.2 KiB
YAML
name: Publish to WinGet
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
env:
|
|
REGEX: 'Microsoft\.WindowsTerminal(?:Preview)?_([\d.]+)_8wekyb3d8bbwe\.msixbundle$'
|
|
# winget-create will read the following environment variable to access the GitHub token needed for submitting a PR
|
|
# See https://aka.ms/winget-create-token
|
|
WINGET_CREATE_GITHUB_TOKEN: ${{ secrets.WINGET_TOKEN }}
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: windows-latest # Action can only run on Windows
|
|
steps:
|
|
- name: Publish Windows Terminal ${{ github.event.release.prerelease && 'Preview' || 'Stable' }}
|
|
run: |
|
|
$assets = '${{ toJSON(github.event.release.assets) }}' | ConvertFrom-Json
|
|
$wingetRelevantAsset = $assets | Where-Object { $_.name -like '*.msixbundle' } | Select-Object -First 1
|
|
$regex = [Regex]::New($env:REGEX)
|
|
$version = $regex.Match($wingetRelevantAsset.name).Groups[1].Value
|
|
|
|
$wingetPackage = "Microsoft.WindowsTerminal${{ github.event.release.prerelease && '.Preview' || '' }}"
|
|
|
|
& curl.exe -JLO https://aka.ms/wingetcreate/latest
|
|
& .\wingetcreate.exe update $wingetPackage -s -v $version -u $wingetRelevantAsset.browser_download_url
|