obsidian-github-publisher: Workflow doesn't run [Template]

Dear Mara-Li,

I tried everything but the moment I publish a note I get “Error publishing to mt-2022”.

I followed your step-by-step instructions

  1. I have github-pro (education) with a repo from your template at https://github.com/jonathan-hase/mt-2022
  2. I installed your obsidian plugin and provided my github-name, my repo name and the api-key
  3. I changed the website url inside mkdocs.yml to https://jonathan-hase.github.io/mt-2022/
  4. I added the share: true frontmatter to the notes I want to publish. I tried to publish them.

What do you mean by “Also, don’t forget to delete the documentation folder, the contents in assets and clean the notes folder!” inside the README of the template-repo? And do I have to enable the github-page option inside my repo-settings? I am confused, because you write “The blog will be published through GitHub Page using the gh-page branch. Everything is already configured by the template for that.”.

Thanks for your time and help!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (10 by maintainers)

Commits related to this issue

Most upvoted comments

It’s strange because, on my side, any workflow run without problem. For example, in your repo, mkdocs build never run or it needs to after the first edit of mkdocs.yml

Normally, the file is put un your source folder. In the workflows folder there is a file named ci that run the conversion to mkdocs. This conversion will create a new file in notes folder.

To activate the build gh-pages, check if the branch is correctly setup in your github repo settings, as bellow :

image

(don’t worry about the custom domain btw)

Also I will update the plugin to trim any Whitespace in the settings, preveting future problem !