The tag workflow only prepares unsigned review input as a CI artifact. It has read-only repository permissions and no LuaRocks credentials. Branch pushes, RC tags, final tags, manual dispatch and retries do not publish a release.
- Merge the reviewed release changes. Check the actual commit's CI and the
version in
.github/luarocks-template.rockspec(currently1.47.0-1). Keep the LuaRocks namecasbinand importrequire("casbin")compatible. - From a clean checkout, run
bash scripts/prepare-source.sh <full-commit-sha> <new-output-directory>. The script archives the specified commit, uses an incubating filename, checks the legal-file copies and writes an LF-terminated SHA-512 file. It refuses to overwrite an existing output directory. This step does not sign, stage, tag or publish anything. - Extract the archive, review LICENSE/NOTICE/DISCLAIMER and all bundled
material, run Apache RAT and reconcile its actual coverage. Run
luacheck .andbusted tests -o htestwith the supported Lua runtimes and dependencies. - To check the installed package, copy the committed rockspec template to
casbin-1.47.0-1.rockspec, runluarocks lintandluarocks makeagainst the extracted source in an isolated tree, then test from outside the checkout. Check CachedEnforcer, DatabaseAdapter, every installed module and the legal files under the rock'sdocdirectory. These local builds are not releases. - The release manager reviews the final archive, signs it with an ASF identity
whose public key is in Casbin KEYS, and stages the immutable archive,
.sha512and.ascin the appropriate ASF development distribution path. Download them again and verify the signature/checksum and an extracted build. - Seek the required public Casbin PPMC endorsement and Incubator PMC approval for those exact bytes. Record both vote/result links. A new candidate with changed bytes requires new review/votes. A tag or CI success is not approval.
Only after both approvals, and with the release manager's authorization:
- Promote the voted source archive and its existing signature/checksum unchanged
to the ASF release distribution at
incubator/casbin/lua/1.47.0/. Confirm the public downloads match the voted hashes. Do not regenerate the archive from the final tag. The final tag must point to the voted source commit. - Download the approved archive and verify its checksum/signature. Extract the
rockspec template from it, retaining its ASF source URL and source directory,
and name it
casbin-1.47.0-1.rockspec. Before upload, runluarocks packand verify that the resulting source rock embeds the exact approved tarball; also install it in a clean consumer and review its contents. Check that the package/version has not already been published. - An authorized LuaRocks administrator uploads that reviewed rockspec with
luarocks upload casbin-1.47.0-1.rockspec --skip-pack. Supply credentials through the administrator's normal secure mechanism. Never use--force. If a retry finds an existing version, compare its source and metadata first; do not overwrite it. Registry control and ASF distribution permissions are separate prerequisites. - If creating a GitHub Release, attach the voted originals, include the
incubation disclaimer below, and link the official ASF source, KEYS and
verification instructions.
Do not replace existing assets or move
latestbefore approval. Historical releases through 1.46.0 predate Apache incubation. - Verify the live LuaRocks page, downloaded rock, installed consumer and GitHub display. Announce the approved release and record the public archive links.
References: ASF Release Policy, Incubation Policy, distribution guidance.
Apache Casbin is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.