diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 98e87d3..f444079 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,9 +55,11 @@ jobs: fi echo "✓ Rockspec valid: $ROCKSPEC" - rm -f "$ROCKSPEC" # Clean up, lx upload will regenerate + rm -f "$ROCKSPEC" # Clean up, lx upload will regenerate + # Sole LuaRocks publication point - uses lx upload which has built-in JSON + # handling and doesn't require system Lua JSON libraries - name: Upload to LuaRocks - run: lx --lua-version 5.1 upload + run: lx --lua-version 5.1 upload --verbose env: LUX_API_KEY: ${{ secrets.LUX_API_KEY }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 8d3e0cd..5d0fa1a 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -13,7 +13,7 @@ permissions: jobs: release: name: Release - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: googleapis/release-please-action@v4 id: release @@ -74,9 +74,13 @@ jobs: run: | gh release upload ${{ steps.release.outputs.tag_name }} roda roda.sha256 *.rockspec - - name: Publish to LuaRocks - if: ${{ steps.release.outputs.release_created }} - env: - LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} - run: | - luarocks upload *.rockspec --api-key=${LUAROCKS_API_KEY} + # LuaRocks publication moved to publish.yml workflow (tag-triggered) + # to avoid dependency issues and simplify debugging. The publish.yml + # workflow uses lx upload which has built-in JSON handling and doesn't + # require system Lua JSON libraries like luarocks upload does. + # - name: Publish to LuaRocks + # if: ${{ steps.release.outputs.release_created }} + # env: + # LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + # run: | + # luarocks upload *.rockspec --api-key=${LUAROCKS_API_KEY}