Instead of letting Flatter create and upload GitHub Page's artifact.tar, it would be better to rather just prepare the files necessary for upload (including the .flatpakrepo file, and possibly also .flatpak bundles (see #117) and .flatpakref files (see #91) in the future) in a distinct directory (e.g. using a new upload: _site/ config) and leave the rest to the user. If no additional steps are deemed necessary by the user, the next step would be to just call GitHub's official actions/upload-pages-artifact action. This also simplifies Flatter by not reinventing the wheel (and not breaking if GitHub decides to expect something else than artifact.tar).
However, if the user wants to do some additional steps, like using Jekyll (see the actions/jekyll-build-pages action) to build a more sophisticated website, one could use the actions/upload-artifact action instead and then just build and upload the website in the deploy job, not requiring the user to fiddle with tar.
For an example see my PhrozenByte/flatpak-com.jetbrains.PhpStorm repo, which clumsily needs to download, untar and delete the github-pages artifact created by Flatter first to enable processing by Jekyll (see highlighted lines).
By the way, I took the freedom to use your website from ./tests as simple boilerplate for a website hosting a single Flatpak (fully configurable with Jekyll). If you ever decide to implement the suggested above, it might be a good starting point for an example in Flatter's README.md.
Instead of letting Flatter create and upload GitHub Page's
artifact.tar, it would be better to rather just prepare the files necessary for upload (including the.flatpakrepofile, and possibly also.flatpakbundles (see #117) and.flatpakreffiles (see #91) in the future) in a distinct directory (e.g. using a newupload: _site/config) and leave the rest to the user. If no additional steps are deemed necessary by the user, the next step would be to just call GitHub's officialactions/upload-pages-artifactaction. This also simplifies Flatter by not reinventing the wheel (and not breaking if GitHub decides to expect something else thanartifact.tar).However, if the user wants to do some additional steps, like using Jekyll (see the
actions/jekyll-build-pagesaction) to build a more sophisticated website, one could use theactions/upload-artifactaction instead and then just build and upload the website in thedeployjob, not requiring the user to fiddle withtar.For an example see my
PhrozenByte/flatpak-com.jetbrains.PhpStormrepo, which clumsily needs to download, untar and delete thegithub-pagesartifact created by Flatter first to enable processing by Jekyll (see highlighted lines).By the way, I took the freedom to use your website from
./testsas simple boilerplate for a website hosting a single Flatpak (fully configurable with Jekyll). If you ever decide to implement the suggested above, it might be a good starting point for an example in Flatter'sREADME.md.