Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhuster committed Nov 4, 2024
1 parent 06e4b6b commit d9f20a3
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/luarocks.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/release.yml
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

5 changes: 5 additions & 0 deletions RELEASE.md
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`

0 comments on commit d9f20a3

Please sign in to comment.