-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utilize GitHub's official actions/upload-pages-artifact
#119
Comments
That's definitely not necessary; the Custom Deploy in the README describes how you can use another action, or the official GitHub action. The repository path is always set as the output Alternatively, you can just inject extra files using the |
I indeed saw that section in In any case I believe that recommending users to use a separate step to upload the website streamlines usage. It stresses that users can modify the files uploaded (like that users aren't limited to |
That's true, that could be changed. It's worth pointing out that just like the
I see this as very much a matter of opinion. I do this in some repositories, but in other I much prefer the "fire and forget" aspect 🤷 |
Can you elaborate on why the If Flatter could create the Besides that, you're absolutely right, whether an all-in-one-solution or separate steps is better really is just a matter of opinion 😄 |
Because the To be honest, it sounds like you're looking for something with more flexibility than Flatter is really intended for. Flatter's job is really to let |
I guess we have had a misunderstanding, Flatter is working just fine for me ❤️ In general you're absolutely right: In the last days I've read Flatter's source code and more docs about the matter, and it's true that one can achieve the same with a couple of lines of code around Yes, Flatter does have to make some assumptions. Some assumptions are just fine the way they are (like assuming that the Flatpak repo is deployed to GitHub Pages). Some could be improved by adding optional workflow options that are used in These are just suggestions for a future Flatter. Please don't feel obligated in any way, I don't say that I expect anyone to actually implement this. Because, if I'd really need it, I'd have to implement it myself. As I've said in #117 (comment), I can absolutely relate to having limited time and to put it bluntly, you likely have better things to do with your free time than to implement stuff you don't need yourself. So, no worries, these are just suggestions that might never become reality if nobody picks them up. I worked around the issues I had and Flatter is working just fine for me now. So I'm very happy with Flatter |
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 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-artifact
action. 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-pages
action) to build a more sophisticated website, one could use theactions/upload-artifact
action instead and then just build and upload the website in thedeploy
job, not requiring the user to fiddle withtar
.For an example see my
PhrozenByte/flatpak-com.jetbrains.PhpStorm
repo, which clumsily needs to download, untar and delete thegithub-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'sREADME.md
.The text was updated successfully, but these errors were encountered: