-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06e4b6b
commit d9f20a3
Showing
3 changed files
with
65 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
create_release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install GitHub CLI | ||
run: sudo apt install -y gh | ||
|
||
- name: Authenticate GitHub CLI | ||
run: gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Read release notes | ||
id: read_release_notes | ||
run: | | ||
RELEASE_NOTES=$(sed 's/`/\\`/g' RELEASE.md) | ||
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV | ||
echo "$RELEASE_NOTES" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Check if tag exists | ||
id: check_tag | ||
run: | | ||
if gh release view "${GITHUB_REF##*/}" >/dev/null 2>&1; then | ||
gh release delete "${GITHUB_REF##*/}" -y | ||
fi | ||
- name: Create GitHub Release | ||
run: | | ||
gh release create "${GITHUB_REF##*/}" --title "${GITHUB_REF##*/}" --notes "${RELEASE_NOTES}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
luarocks-release: | ||
runs-on: ubuntu-latest | ||
name: LuaRocks upload | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: LuaRocks Upload | ||
uses: nvim-neorocks/luarocks-tag-release@v4 | ||
env: | ||
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} | ||
# with: # Optional inputs... | ||
# dependencies: | | ||
# plenary.nvim | ||
# nvim-lspconfig | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## New features | ||
|
||
Add support for Vim 8.2 compiled with Lua support (:echo has("lua") returns 1). | ||
|
||
Add configuration options `g:autosave_enabled` |