Skip to content

Utilize GitHub's official actions/upload-pages-artifact #119

@PhrozenByte

Description

@PhrozenByte

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgithub_actionsPull requests that update GitHub Actions code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions