Adding a new spec for autopublishing

Autopublishing means that, when the Bikeshed source of a CSS module is updated, not only is a new Editors Draft generated, but also a new Technical Report publication (Working Draft, Candidate Recommendation Draft, or Note).

Control .yml files

Specifications whose editors have opted in to autopublishing are listed in the workflows directory. Each spec has a .yml file. For example, if CSS Foo Level 2 is autopublishable, there will be a css-foo-2.yml file in that directory.

Because the syntax is verbose and repetitive, these files are autogenerated by script.

The generator script

The script to generate .yml files is called generate-auto-publish-workflows.py and lives in the .github directory. It is written in Python 3. It includes the contents of auto-publish-template.yml which should be the same for all specifications.

To add a new spec:

Once this is done:

For example, add

    {  
        "shortname": "css-foo-2",
        "publicationStatus": "WD",
    },

Take care there is a comma between each line and between each { .. } pair.

It is recommended to test out the new workflow: make a small edit to your specification and push the change.