From b313793ff17441d90a0fb4a054034f95236435c3 Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Tue, 18 Jun 2024 09:12:52 +0300 Subject: [PATCH] ci: release to luarocks when a new tag is pushed --- .github/workflows/release-luarocks.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release-luarocks.yml diff --git a/.github/workflows/release-luarocks.yml b/.github/workflows/release-luarocks.yml new file mode 100644 index 0000000..ece849f --- /dev/null +++ b/.github/workflows/release-luarocks.yml @@ -0,0 +1,23 @@ +# https://github.com/marketplace/actions/luarocks-tag-release +name: LuaRocks release +on: + push: + tags: # Will upload to luarocks.org when a tag is pushed + - "*" + pull_request: # Will test a local install without uploading to luarocks.org + +jobs: + luarocks-release: + runs-on: ubuntu-latest + name: LuaRocks upload + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: LuaRocks Upload + uses: nvim-neorocks/luarocks-tag-release@v6 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + # https://github.com/marketplace/actions/luarocks-tag-release#dependencies + dependencies: | + plenary.nvim