diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e290973..e41c57e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,3 +116,14 @@ jobs: message: "Current stable release: ${{ steps.release.outputs.tag_name }}" tag_exists_error: false force_push_tag: true + luarocks-release: + runs-on: ubuntu-latest + name: LuaRocks upload + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: LuaRocks Upload + uses: nvim-neorocks/luarocks-tag-release@v5 + if: startsWith(github.ref, 'refs/tags/') + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks.yml index de963ab5..2e1db50c 100644 --- a/.github/workflows/luarocks.yml +++ b/.github/workflows/luarocks.yml @@ -1,8 +1,8 @@ name: LuaRocks on: push: - tags: - - "*" + branches: + - main pull_request: branches: - main @@ -17,5 +17,6 @@ jobs: uses: actions/checkout@v3 - name: LuaRocks Upload uses: nvim-neorocks/luarocks-tag-release@v5 + if: startsWith(github.ref, 'refs/tags/') env: LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}