From 4bb56270f25d5f3868a512bf71b268706a9efb6d Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Thu, 23 May 2024 21:55:36 +0200 Subject: [PATCH] feat: support luarocks/rocks.nvim --- .github/workflows/luarocks.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/luarocks.yml diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks.yml new file mode 100644 index 00000000..0dd45d92 --- /dev/null +++ b/.github/workflows/luarocks.yml @@ -0,0 +1,28 @@ +--- +name: Push to Luarocks + +on: + push: + tags: + - '*' + release: + types: + - created + pull_request: # Test the workflow on PR without publishing + workflow_dispatch: + +jobs: + luarocks-upload: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Required to count the commits + - name: Get Version + run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV + - name: LuaRocks Upload + uses: nvim-neorocks/luarocks-tag-release@v5 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + version: ${{ env.LUAROCKS_VERSION }}