Draft releases do not fire the `release: created` event, so the release
workflow never ran and the source zip and SLSA provenance were not
attached to the draft. Trigger the workflow explicitly from release.py
via workflow_dispatch, passing the tag to attach to and the ref to build
from, and resolve the tag/ref in the workflow for both event types.
Re-enable generation of the api.html redirect page during docs deploy so
legacy links such as api.html#udt forward to the new MkDocs api/ page with
their URL hash preserved.
Adds .github/workflows/release.yml, triggered on `release: created`, which:
- checks out the release's target_commitish,
- builds the source zip via CMake/CPack (`package_source`),
- uploads the zip to the draft release,
- calls slsa-framework/slsa-github-generator to produce a
SLSA v1.0 *.intoto.jsonl provenance file and attach it to the
same draft release.
After CI completes, the draft has both the zip and the provenance attached,
and the maintainer reviews and publishes as before.
Updates support/release.py to stop building and uploading the zip locally;
that work has moved to CI so the SLSA provenance attests to the actual
build environment that produced the artifact, not to a hash observed
after the fact. The script still builds docs locally because the
subsequent mkdocs deploy step depends on them.
* Change indents to 4 spaces.
* Run isort.
* Remove one extra space on the left hand side of each assignment at p.communicate's input.
* Remove 'from __future__ import annotations'.
This requires changing a 'list[]' into a 'List[]'.
We had previously added this import because the code was making use of operator '|'.
But that is no longer true, so the import shouldn't be needed.
* Make support/python/mkdocstrings_handlers/cxx/__init__.py PEP compliant.
* Rollback minor change in __init__ signature.
* Rollback minor change in __init__ signature.
* Fix previous commit.
* Add 'from __future__ import annotations' to fix Python 3.8 error when using operator '|'.
* Change doxyxml2html([n]) to doxyxml2html(list(n)) as suggested by Victor.
Change convert_type return type to Optional[str].