mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
ci(release): move release-winget steps into release job #19689
This commit is contained in:
12
.github/workflows/release-winget.yml
vendored
12
.github/workflows/release-winget.yml
vendored
@@ -1,12 +0,0 @@
|
|||||||
name: Publish to WinGet
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [released]
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
runs-on: windows-latest # action can only be run on windows
|
|
||||||
steps:
|
|
||||||
- uses: vedantmgoyal2009/winget-releaser@latest
|
|
||||||
with:
|
|
||||||
identifier: Neovim.Neovim
|
|
||||||
token: ${{ secrets.WINGET_TOKEN }}
|
|
||||||
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -227,3 +227,16 @@ jobs:
|
|||||||
if [ "$TAG_NAME" != "nightly" ]; then
|
if [ "$TAG_NAME" != "nightly" ]; then
|
||||||
gh release create stable $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos/* nvim-linux64/* appimage/* nvim-win64/*
|
gh release create stable $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos/* nvim-linux64/* appimage/* nvim-win64/*
|
||||||
fi
|
fi
|
||||||
|
publish-winget:
|
||||||
|
needs: publish # run after publish job is finished
|
||||||
|
# publish to winget only on stable releases
|
||||||
|
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name != 'nightly')
|
||||||
|
runs-on: windows-latest # action can only be run on windows
|
||||||
|
steps:
|
||||||
|
- uses: vedantmgoyal2009/winget-releaser@latest
|
||||||
|
with:
|
||||||
|
identifier: Neovim.Neovim
|
||||||
|
# the latter one is a fallback value, reference:
|
||||||
|
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
|
||||||
|
release-tag: ${{ github.event.inputs.tag_name || github.ref }}
|
||||||
|
token: ${{ secrets.WINGET_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user