From 63a537961572978a5fba88151b11a1cfa1b8494c Mon Sep 17 00:00:00 2001 From: jghauser Date: Sat, 1 Jun 2024 12:03:41 +0200 Subject: [PATCH 1/3] feat: luarocks support --- .github/workflows/luarocks.yml | 38 ++++++++++++++++++++++++++++ .github/workflows/release-please.yml | 19 ++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/workflows/luarocks.yml create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks.yml new file mode 100644 index 0000000..323080e --- /dev/null +++ b/.github/workflows/luarocks.yml @@ -0,0 +1,38 @@ +name: Push to Luarocks + +on: + push: + tags: + - '*' + release: + types: + - created + pull_request: # Makes sure the luarocks package can build on PR + workflow_dispatch: # Allow manual trigger (e.g. if a tagged build failed) + +jobs: + luarocks-upload: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + 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 }} + dependencies: | + sqlite + plenary.nvim + nui.nvim + nvim-treesitter + labels: | + neovim + detailed_description: | + Papis.nvim is a neovim companion plugin for the bibliography manager papis. + It's meant for all those who do academic and other writing in neovim and who + want quick access to their bibliography from within the comfort of their editor. diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..4a39a90 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,19 @@ +name: Release Please + +on: + push: + branches: + - main + - master + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }} + with: + release-type: simple + package-name: papis.nvim From eec11cc669098aa8a8b034cf9689bdec9b1d0919 Mon Sep 17 00:00:00 2001 From: jghauser Date: Sat, 1 Jun 2024 12:03:50 +0200 Subject: [PATCH 2/3] docs(readme): add rocks.nvim instructions --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index ec99b4a..cb12819 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,12 @@ To run, papis.nvim requires the [yq](https://github.com/mikefarah/yq) utility to ### Package managers +With rocks.nvim: + +```vim +:Rocks install papis.nvim +``` + With packer: ```lua From a9c6c056f0a6ae1a1d1f9d9f5a50747a720f936b Mon Sep 17 00:00:00 2001 From: jghauser Date: Sat, 1 Jun 2024 10:12:07 +0000 Subject: [PATCH 3/3] chore(docs): auto generate docs --- doc/papis.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/papis.txt b/doc/papis.txt index 20a8664..1a92b3b 100644 --- a/doc/papis.txt +++ b/doc/papis.txt @@ -1,4 +1,4 @@ -*papis.txt* For NVIM v0.8.0 Last change: 2024 May 31 +*papis.txt* For NVIM v0.8.0 Last change: 2024 June 01 ============================================================================== Table of Contents *papis-table-of-contents* @@ -132,6 +132,12 @@ papis.nvim doesn’t (currently) support the python yq PACKAGE MANAGERS ~ +With rocks.nvim: + +>vim + :Rocks install papis.nvim +< + With packer: >lua