diff options
author | Vedant <83997633+vedantmgoyal2009@users.noreply.github.com> | 2022-09-17 04:03:06 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 15:33:06 -0700 |
commit | c126c1f73a0bae3ac40ce460ef303348a671a08f (patch) | |
tree | 6242d4da92aba8c8cd2934ebd98fdd8d41f6ed76 | |
parent | 6cc03b9c90675d5736e317a55b0ef9feb929e04f (diff) | |
download | rneovim-c126c1f73a0bae3ac40ce460ef303348a671a08f.tar.gz rneovim-c126c1f73a0bae3ac40ce460ef303348a671a08f.tar.bz2 rneovim-c126c1f73a0bae3ac40ce460ef303348a671a08f.zip |
ci(release-winget): publish nightly winget prerelease #20209
-rw-r--r-- | .github/workflows/release.yml | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6933e9330..dd5a690a30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -229,14 +229,31 @@ jobs: 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 + - 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') + name: Get nightly version + 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 + 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 + uses: vedantmgoyal2009/winget-releaser@latest + with: + identifier: Neovim.Neovim.Nightly + version: ${{ steps.get-version.outputs.version }} + release-tag: nightly + token: ${{ secrets.WINGET_TOKEN }} |