aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVedant <83997633+vedantmgoyal2009@users.noreply.github.com>2022-09-19 14:18:05 +0530
committerGitHub <noreply@github.com>2022-09-19 10:48:05 +0200
commit7a091fdfafc5393263e74a8fdfe3467f9ae7349b (patch)
tree268ec5a9aac7bec4da4f60232e9e73be199d5fee
parent7bd4c8e8ee2f623fbde017987f2989e8b8792829 (diff)
downloadrneovim-7a091fdfafc5393263e74a8fdfe3467f9ae7349b.tar.gz
rneovim-7a091fdfafc5393263e74a8fdfe3467f9ae7349b.tar.bz2
rneovim-7a091fdfafc5393263e74a8fdfe3467f9ae7349b.zip
ci(publish-winget): fix errors that prevents release (#20232)
-rw-r--r--.github/workflows/release.yml11
1 files changed, 4 insertions, 7 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index dd5a690a30..5e0ea5e5f4 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -228,16 +228,14 @@ jobs:
gh release create stable $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos/* nvim-linux64/* appimage/* nvim-win64/*
fi
publish-winget:
- needs: publish # run after publish job is finished
- runs-on: windows-latest # action can only be run on windows
+ needs: publish
+ runs-on: windows-latest
steps:
- if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name != 'nightly')
name: Publish stable
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 }}
- if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly')
@@ -245,9 +243,8 @@ jobs:
id: get-version
run: |
Invoke-WebRequest https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.msi -OutFile setup.msi
- Install-Module -Name 'Carbon' -AllowClobber -Force
- Import-Module Carbon
- $VERSION = (Get-CMsi .\setup.msi).ProductVersion
+ Install-Module -Name 'Carbon.Windows.Installer' -Force
+ $VERSION = (Get-CMsi (Resolve-Path .\setup.msi).Path).ProductVersion
echo "::set-output name=version::$VERSION"
- if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly')
name: Publish nightly