diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks.yml new file mode 100644 index 0000000..ebac2ce --- /dev/null +++ b/.github/workflows/luarocks.yml @@ -0,0 +1,34 @@ +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: | + plenary.nvim + nui.nvim + reactivex + labels: | + neovim + summary: "Docker management right inside Neovim!" diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..24a395d --- /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: nvim-docker diff --git a/README.md b/README.md index a66df06..8e02e50 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,27 @@ Docker management right inside Neovim! ## Installation -### Packer +### Using [`rocks.nvim`](https://github.com/nvim-neorocks/rocks.nvim) + +```vimscript +:Rocks install nvim-docker +``` + +### [`lazy.nvim`](https://github.com/folke/lazy.nvim) ```lua -use { +{ 'dgrbrady/nvim-docker', - requires = {'nvim-lua/plenary.nvim', 'MunifTanjim/nui.nvim'}, - rocks = '4O4/reactivex' -- ReactiveX Lua implementation + dependencies = { + 'nvim-lua/plenary.nvim', + 'MunifTanjim/nui.nvim', + { + '4O4/reactivex', + build = function(plugin) + vim.uv.fs_symlink(plugin.dir, plugin.dir .. "/lua", { dir = true }) + end, + }, + }, } ```