mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
ci(publish-winget): use versioned tags for action #20417
This commit is contained in:
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -233,10 +233,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name != 'nightly')
|
- if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name != 'nightly')
|
||||||
name: Publish stable
|
name: Publish stable
|
||||||
uses: vedantmgoyal2009/winget-releaser@latest
|
uses: vedantmgoyal2009/winget-releaser@v1
|
||||||
with:
|
with:
|
||||||
identifier: Neovim.Neovim
|
identifier: Neovim.Neovim
|
||||||
release-tag: ${{ github.event.inputs.tag_name || github.ref }}
|
release-tag: ${{ github.event.inputs.tag_name || github.ref_name }}
|
||||||
token: ${{ secrets.WINGET_TOKEN }}
|
token: ${{ secrets.WINGET_TOKEN }}
|
||||||
- if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly')
|
- if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly')
|
||||||
name: Get nightly version
|
name: Get nightly version
|
||||||
@@ -248,7 +248,7 @@ jobs:
|
|||||||
echo "::set-output name=version::$VERSION"
|
echo "::set-output name=version::$VERSION"
|
||||||
- if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly')
|
- if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly')
|
||||||
name: Publish nightly
|
name: Publish nightly
|
||||||
uses: vedantmgoyal2009/winget-releaser@latest
|
uses: vedantmgoyal2009/winget-releaser@v1
|
||||||
with:
|
with:
|
||||||
identifier: Neovim.Neovim.Nightly
|
identifier: Neovim.Neovim.Nightly
|
||||||
version: ${{ steps.get-version.outputs.version }}
|
version: ${{ steps.get-version.outputs.version }}
|
||||||
|
Reference in New Issue
Block a user