From fe70010512d4ed3a56108cdd07f377a970729d27 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Thu, 18 Apr 2024 19:23:47 +0200 Subject: [PATCH 1/4] feat: luarocks/rocks.nvim support --- .github/workflows/luarocks.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 000000000..7a6349f86 --- /dev/null +++ b/.github/workflows/luarocks.yml @@ -0,0 +1,30 @@ +--- +name: Push to Luarocks + +on: + push: + tags: + - '*' + release: + types: + - created + tags: + - '*' + workflow_dispatch: + +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: + name: catppuccin.nvim + version: ${{ env.LUAROCKS_VERSION }} From fc263c855187c084735afd58de4a3cee23dea30a Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 2 Aug 2025 01:05:52 +0100 Subject: [PATCH 2/4] ci(release-please): upload to luarocks --- .github/workflows/luarocks.yml | 30 ------------------------------ .github/workflows/release.yml | 21 +++++++++++++++++---- 2 files changed, 17 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/luarocks.yml diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks.yml deleted file mode 100644 index 7a6349f86..000000000 --- a/.github/workflows/luarocks.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: Push to Luarocks - -on: - push: - tags: - - '*' - release: - types: - - created - tags: - - '*' - workflow_dispatch: - -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: - name: catppuccin.nvim - version: ${{ env.LUAROCKS_VERSION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ff8551ec..8f06b7c59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,7 @@ on: workflow_dispatch: jobs: - release: - name: release + release-please: runs-on: ubuntu-latest steps: - uses: googleapis/release-please-action@v4 @@ -15,9 +14,16 @@ jobs: with: release-type: simple package-name: catppuccin + outputs: + release_created: ${{ steps.release.outputs.release_created }} + tag_name: ${{ steps.release.outputs.tag_name }} + + release: + runs-on: ubuntu-latest + if: ${{ needs.release-please.outputs.release_created }} + steps: - uses: actions/checkout@v4 - - name: tag stable versions - if: ${{ steps.release.outputs.release_created }} + - name: Update Latest Stable Tag run: | git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com @@ -26,3 +32,10 @@ jobs: git push origin :stable || true git tag -a stable -m "Last Stable Release" git push origin stable + - name: Upload to LuaRocks + uses: nvim-neorocks/luarocks-tag-release@v7 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + name: catppuccin.nvim + version: ${{ needs.release-please.outputs.tag_name }} From cb568390ee399c1434a16bac822ad77822eba0fb Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 3 Aug 2025 02:57:39 +0100 Subject: [PATCH 3/4] docs(README): add rocks.nvim section --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index edf72ef24..87f304644 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,11 @@ add({ source = "catppuccin/nvim", name = "catppuccin" }) use { "catppuccin/nvim", as = "catppuccin" } ``` +[rocks.nvim](https://github.com/nvim-neorocks/rocks.nvim) +```vim +:Rocks install catppuccin.nvim +``` + [vim-plug](https://github.com/junegunn/vim-plug) ```vim Plug 'catppuccin/nvim', { 'as': 'catppuccin' } From 04900da56248f20d8b22df59f71b8ddcc962994a Mon Sep 17 00:00:00 2001 From: sgoudham <58985301+sgoudham@users.noreply.github.com> Date: Sun, 3 Aug 2025 01:58:07 +0000 Subject: [PATCH 4/4] docs: auto generate vimdoc --- doc/catppuccin.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/catppuccin.txt b/doc/catppuccin.txt index 8a061b508..69625e5a4 100644 --- a/doc/catppuccin.txt +++ b/doc/catppuccin.txt @@ -43,6 +43,12 @@ packer.nvim use { "catppuccin/nvim", as = "catppuccin" } < +rocks.nvim + +>vim + :Rocks install catppuccin.nvim +< + vim-plug >vim