2022-06-15 14:35:28 +02:00
|
|
|
name: Submit Nushell package to Windows Package Manager Community Repository
|
2021-07-22 18:38:03 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
2023-02-22 13:54:15 +01:00
|
|
|
types: [released]
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
tag_name:
|
|
|
|
description: 'Specific tag name'
|
2023-09-24 14:52:10 +02:00
|
|
|
required: true
|
2023-02-22 13:54:15 +01:00
|
|
|
type: string
|
2021-07-22 18:38:03 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
winget:
|
|
|
|
name: Publish winget package
|
2023-08-17 17:12:16 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-22 18:38:03 +02:00
|
|
|
steps:
|
|
|
|
- name: Submit package to Windows Package Manager Community Repository
|
2023-02-22 13:54:15 +01:00
|
|
|
uses: vedantmgoyal2009/winget-releaser@v2
|
|
|
|
with:
|
|
|
|
identifier: Nushell.Nushell
|
2023-09-24 14:52:10 +02:00
|
|
|
# Exclude all `*-msvc-full.msi` full release files,
|
|
|
|
# and only the default `*msvc.msi` files will be included
|
|
|
|
installers-regex: 'msvc\.msi$'
|
2023-02-22 13:54:15 +01:00
|
|
|
version: ${{ inputs.tag_name || github.event.release.tag_name }}
|
|
|
|
release-tag: ${{ inputs.tag_name || github.event.release.tag_name }}
|
|
|
|
token: ${{ secrets.NUSHELL_PAT }}
|
|
|
|
fork-user: fdncred
|