mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
ci(publish-winget): fix errors that prevents release (#20232)
This commit is contained in:
parent
7bd4c8e8ee
commit
7a091fdfaf
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -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/*
|
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:
|
publish-winget:
|
||||||
needs: publish # run after publish job is finished
|
needs: publish
|
||||||
runs-on: windows-latest # action can only be run on windows
|
runs-on: windows-latest
|
||||||
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@latest
|
||||||
with:
|
with:
|
||||||
identifier: Neovim.Neovim
|
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 }}
|
release-tag: ${{ github.event.inputs.tag_name || github.ref }}
|
||||||
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')
|
||||||
@ -245,9 +243,8 @@ jobs:
|
|||||||
id: get-version
|
id: get-version
|
||||||
run: |
|
run: |
|
||||||
Invoke-WebRequest https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.msi -OutFile setup.msi
|
Invoke-WebRequest https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.msi -OutFile setup.msi
|
||||||
Install-Module -Name 'Carbon' -AllowClobber -Force
|
Install-Module -Name 'Carbon.Windows.Installer' -Force
|
||||||
Import-Module Carbon
|
$VERSION = (Get-CMsi (Resolve-Path .\setup.msi).Path).ProductVersion
|
||||||
$VERSION = (Get-CMsi .\setup.msi).ProductVersion
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user