logseq / publish-spa

A github action and CLI to publish logseq graphs as a SPA app
MIT License
244 stars 14 forks source link

Publish workflow fails #21

Closed HarvsG closed 10 months ago

HarvsG commented 10 months ago

What Happened?

I tried to publish my graph:

But when the workflow ran I got this error

Options: {:directory ".", :static-directory ".logseq-logseq/static", :theme-mode "light", :accent-color "blue"}
Error: Invalid graph directory '/home/runner/work/logseq/logseq' as it has no logseq/config.edn.
Error: Process completed with exit code 1.

Similar issue

Reproduce the Bug

Expected Behavior

The workflow runs correctly

Desktop or Mobile Platform Information

Windows 11 desktop 0.10.3

HarvsG commented 10 months ago

Ok I fixed it by manually adding a config.edn This requirement is not documented https://github.com/HarvsG/logseq/commit/eba451114740548a433b7968cf55d3f50eb66ade

HarvsG commented 10 months ago

Now i'm getting a github 404 https://notes.codingdoctor.co.uk/ When I open index.html locally I have no problem

Ok I had incorrectly selected github actions in this drop down, selecting Deploy from branch fixed it. image

However this seems to circumvent .github/workflows/publish.yml which presumably means I'm missing out on features.

HarvsG commented 10 months ago

Ok, I've realised the error of my ways. I don't need to do this and export public pages. This workflow is not for me because I am not a github premium subscriber and I don't want my graph to be in a public repository. So instead I do a manual export and then just host it as a webpage.

logseq-cldwalker commented 10 months ago

I don't need to do this and export public pages.

Hi. Correct. This github action just takes your graph and automatically exports for you

This workflow is not for me because I am not a github premium subscriber and I don't want my graph to be in a public repository.

If you come end up using a free solution that allows publishing private repositories, let me know and I can mention it in the readme