From 0ff9f71130aea660f0740e180ddd77e63b667992 Mon Sep 17 00:00:00 2001 From: Brian Ryall Date: Thu, 18 Jul 2024 12:39:29 -0400 Subject: [PATCH] ci: add luarocks release --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ flake.nix | 1 + 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2806b77 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release +on: + push: + tags: + - "*" + pull_request: + +jobs: + luarocks-release: + runs-on: ubuntu-latest + name: LuaRocks upload + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Fail if changelog entry does not exist + if: startsWith(github.ref, 'refs/tags/') + run: grep -q "${{ github.ref_name }}" CHANGELOG.md + - name: LuaRocks Upload + uses: nvim-neorocks/luarocks-tag-release@v7 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + detailed_description: | + A plugin that helps to use git worktree operations, create, switch, and delete in neovim. + - name: GitHub Release + if: startsWith(github.ref, 'refs/tags/') + uses: ncipollo/release-action@v1 + with: + bodyFile: "CHANGELOG.md" + allowUpdates: true diff --git a/flake.nix b/flake.nix index 86c7a4d..9d6ca95 100644 --- a/flake.nix +++ b/flake.nix @@ -139,6 +139,7 @@ luarocks plenary-nvim ])) + git-cliff ]); }; };