On Sun, 4 May 2025 at 10:12, sebb <seb...@gmail.com> wrote:
>
> The website workfile currently commits build output directly to the
> branch (except for main).
>
> This means it is easy to check that the branch builds OK, but it also
> means that the branch now has additional changes compared with main.
> This breaks PRs, as they will now include the site code.
> It's also not ideal for feature branches, as it makes merging or
> creating a PR harder.
>
> So the generated output needs to be stored elsewhere.
>
> This could be as a data file that has to be downloaded.
> But I think it makes sense to create a separate branch for the output.
> This can then be automatically staged, to make it easier to review.

Now implemented:

branch builds are now added to a new branch with the suffix '-site'
The .asf.yaml file is set up to automatically stage the new branch.

Note: do not use underscore, period or solidus in branch names as
these are not valid for the staging site hostname.
Best to stick to lowercase + digits + hyphen.

Also the 'retire' workflow now triggers the website build.

Sample PR:

https://github.com/apache/attic/pull/10

> Sebb

Reply via email to