For other lost peeps like me, the thing missing in OP's workflow is the checkout step. I was getting the same "empty archive" until I added the always necessary uses: actions/checkout@v4
uses: actions/checkout@v4