Skip to content

fix bug

fix bug #6

Workflow file for this run

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