diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks.yml index dbdc2894..b502a878 100644 --- a/.github/workflows/luarocks.yml +++ b/.github/workflows/luarocks.yml @@ -1,6 +1,9 @@ name: Push to Luarocks on: + push: + tags: + - "v*" schedule: - cron: "0 0 * * *" workflow_dispatch: @@ -9,14 +12,12 @@ jobs: luarocks-upload: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 - name: LuaRocks Upload - uses: lumen-oss/luarocks-tag-release@v7 + uses: nvim-neorocks/luarocks-tag-release@v5 env: LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} with: - version: "scm" - extra_luarocks_args: | - --force - dependencies: | - plenary.nvim + version: ${{ github.ref_type == 'tag' && github.ref_name || 'scm' }} + extra_luarocks_args: + ${{ github.ref_type != 'tag' && '--force' || '' }}