mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ci(release): use gh cli instead of 3rd-party actions
Closes #15709 [skip ci]
This commit is contained in:
parent
2230b578d1
commit
0ce800753e
41
.github/workflows/notes.md
vendored
Normal file
41
.github/workflows/notes.md
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
```
|
||||||
|
${NVIM_VERSION}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|
1. Extract **nvim-win64.zip** (or **nvim-win32.zip**)
|
||||||
|
2. Run `nvim-qt.exe`
|
||||||
|
|
||||||
|
### macOS
|
||||||
|
|
||||||
|
1. Download **nvim-macos.tar.gz**
|
||||||
|
2. Extract: `tar xzvf nvim-macos.tar.gz`
|
||||||
|
3. Run `./nvim-osx64/bin/nvim`
|
||||||
|
|
||||||
|
### Linux (x64)
|
||||||
|
|
||||||
|
1. Download **nvim.appimage**
|
||||||
|
2. Run `chmod u+x nvim.appimage && ./nvim.appimage`
|
||||||
|
- If your system does not have FUSE you can [extract the appimage](https://github.com/AppImage/AppImageKit/wiki/FUSE#type-2-appimage):
|
||||||
|
```
|
||||||
|
./nvim.appimage --appimage-extract
|
||||||
|
./squashfs-root/usr/bin/nvim
|
||||||
|
```
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- Install by [package manager](https://github.com/neovim/neovim/wiki/Installing-Neovim)
|
||||||
|
|
||||||
|
## SHA256 Checksums
|
||||||
|
|
||||||
|
```
|
||||||
|
${SHA_LINUX_64}
|
||||||
|
${SHA_APP_IMAGE}
|
||||||
|
${SHA_APP_IMAGE_ZSYNC}
|
||||||
|
${SHA_MACOS}
|
||||||
|
${SHA_WIN_64}
|
||||||
|
${SHA_WIN_32}
|
||||||
|
```
|
98
.github/workflows/release.yml
vendored
98
.github/workflows/release.yml
vendored
@ -145,10 +145,22 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
needs: [linux, appimage, macOS, windows]
|
needs: [linux, appimage, macOS, windows]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
env:
|
||||||
|
GH_REPO: ${{ github.repository }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
# Must perform checkout first, since it deletes the target directory
|
||||||
|
# before running, and would therefore delete the downloaded artifacts
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gettext-base
|
||||||
|
|
||||||
- if: github.event_name == 'workflow_dispatch'
|
- if: github.event_name == 'workflow_dispatch'
|
||||||
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
||||||
- if: github.event_name == 'schedule'
|
- if: github.event_name == 'schedule'
|
||||||
@ -158,16 +170,17 @@ jobs:
|
|||||||
TAG_NAME=${{ github.ref }}
|
TAG_NAME=${{ github.ref }}
|
||||||
echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV
|
echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV
|
||||||
- if: env.TAG_NAME == 'nightly'
|
- if: env.TAG_NAME == 'nightly'
|
||||||
run: echo 'SUBJECT=Nvim development (prerelease) build' >> $GITHUB_ENV
|
run: |
|
||||||
|
(echo 'SUBJECT=Nvim development (prerelease) build';
|
||||||
|
echo 'PRERELEASE=--prerelease') >> $GITHUB_ENV
|
||||||
- if: env.TAG_NAME != 'nightly'
|
- if: env.TAG_NAME != 'nightly'
|
||||||
run: echo 'SUBJECT=Nvim release build' >> $GITHUB_ENV
|
run: |
|
||||||
|
(echo 'SUBJECT=Nvim release build';
|
||||||
|
echo 'PRERELEASE=') >> $GITHUB_ENV
|
||||||
- if: env.TAG_NAME == 'nightly'
|
- if: env.TAG_NAME == 'nightly'
|
||||||
uses: dev-drprasad/delete-tag-and-release@v0.1.2
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
run: gh release delete nightly --yes
|
||||||
delete_release: true
|
|
||||||
tag_name: nightly
|
|
||||||
# `sha256sum` outputs <sha> <path>, so we cd into each dir to drop the
|
# `sha256sum` outputs <sha> <path>, so we cd into each dir to drop the
|
||||||
# containing folder from the output.
|
# containing folder from the output.
|
||||||
- name: Generate Linux64 SHA256 checksums
|
- name: Generate Linux64 SHA256 checksums
|
||||||
@ -200,67 +213,10 @@ jobs:
|
|||||||
cd ./nvim-win64
|
cd ./nvim-win64
|
||||||
sha256sum nvim-win64.zip > nvim-win64.zip.sha256sum
|
sha256sum nvim-win64.zip > nvim-win64.zip.sha256sum
|
||||||
echo "SHA_WIN_64=$(cat nvim-win64.zip.sha256sum)" >> $GITHUB_ENV
|
echo "SHA_WIN_64=$(cat nvim-win64.zip.sha256sum)" >> $GITHUB_ENV
|
||||||
- uses: meeDamian/github-release@2.0
|
- name: Publish release
|
||||||
with:
|
env:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag: ${{ env.TAG_NAME }}
|
NVIM_VERSION: ${{ needs.linux.outputs.version }}
|
||||||
name: ${{ needs.linux.outputs.release }}
|
run: |
|
||||||
prerelease: ${{ env.TAG_NAME == 'nightly' }}
|
envsubst < "$GITHUB_WORKSPACE/.github/workflows/notes.md" > "$RUNNER_TEMP/notes.md"
|
||||||
commitish: ${{ github.sha }}
|
gh release create $TAG_NAME $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos/* nvim-linux64/* appimage/* nvim-win32/* nvim-win64/*
|
||||||
gzip: false
|
|
||||||
allow_override: ${{ env.TAG_NAME == 'nightly' }}
|
|
||||||
files: |
|
|
||||||
nvim-macos.tar.gz:./nvim-macos/nvim-macos.tar.gz
|
|
||||||
nvim-macos.tar.gz.sha256sum:./nvim-macos/nvim-macos.tar.gz.sha256sum
|
|
||||||
nvim-linux64.tar.gz:./nvim-linux64/nvim-linux64.tar.gz
|
|
||||||
nvim-linux64.tar.gz.sha256sum:./nvim-linux64/nvim-linux64.tar.gz.sha256sum
|
|
||||||
nvim.appimage:./appimage/nvim.appimage
|
|
||||||
nvim.appimage.sha256sum:./appimage/nvim.appimage.sha256sum
|
|
||||||
nvim.appimage.zsync:./appimage/nvim.appimage.zsync
|
|
||||||
nvim.appimage.zsync.sha256sum:./appimage/nvim.appimage.zsync.sha256sum
|
|
||||||
nvim-win32.zip:./nvim-win32/nvim-win32.zip
|
|
||||||
nvim-win32.zip.sha256sum:./nvim-win32/nvim-win32.zip.sha256sum
|
|
||||||
nvim-win64.zip:./nvim-win64/nvim-win64.zip
|
|
||||||
nvim-win64.zip.sha256sum:./nvim-win64/nvim-win64.zip.sha256sum
|
|
||||||
body: |
|
|
||||||
${{ env.SUBJECT }}
|
|
||||||
```
|
|
||||||
${{ needs.linux.outputs.version }}```
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
### Windows
|
|
||||||
|
|
||||||
1. Extract **nvim-win64.zip** (or **nvim-win32.zip**)
|
|
||||||
2. Run `nvim-qt.exe`
|
|
||||||
|
|
||||||
### macOS
|
|
||||||
|
|
||||||
1. Download **nvim-macos.tar.gz**
|
|
||||||
2. Extract: `tar xzvf nvim-macos.tar.gz`
|
|
||||||
3. Run `./nvim-osx64/bin/nvim`
|
|
||||||
|
|
||||||
### Linux (x64)
|
|
||||||
|
|
||||||
1. Download **nvim.appimage**
|
|
||||||
2. Run `chmod u+x nvim.appimage && ./nvim.appimage`
|
|
||||||
- If your system does not have FUSE you can [extract the appimage](https://github.com/AppImage/AppImageKit/wiki/FUSE#type-2-appimage):
|
|
||||||
```
|
|
||||||
./nvim.appimage --appimage-extract
|
|
||||||
./squashfs-root/usr/bin/nvim
|
|
||||||
```
|
|
||||||
|
|
||||||
### Other
|
|
||||||
|
|
||||||
- Install by [package manager](https://github.com/neovim/neovim/wiki/Installing-Neovim)
|
|
||||||
|
|
||||||
## SHA256 Checksums
|
|
||||||
|
|
||||||
```
|
|
||||||
${{ env.SHA_LINUX_64 }}
|
|
||||||
${{ env.SHA_APP_IMAGE }}
|
|
||||||
${{ env.SHA_APP_IMAGE_ZSYNC }}
|
|
||||||
${{ env.SHA_MACOS }}
|
|
||||||
${{ env.SHA_WIN_64 }}
|
|
||||||
${{ env.SHA_WIN_32 }}
|
|
||||||
```
|
|
||||||
|
Loading…
Reference in New Issue
Block a user