-
|
I have a vault I'm testing with which has about 70 markdown files, over half of which are empty. When I use My github action file is as follows: name: Publish to gh-pages branch
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: Checkout main
uses: actions/checkout@v3
with:
ref: main
path: clone-path
- name: Install dependencies and run build
run: |
cd ${{ github.workspace }}
pip install --upgrade pip
pip install obsidianhtml
obsidianhtml convert -i clone-path/.publish/config.yml -v
touch html/.nojekyll
- name: Publish to Github Pages
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages # The branch name where you want to push the assets
FOLDER: html # The directory where your assets are generated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
MESSAGE: "Build: ({sha}) {msg}" # The commit message...the only thing I changed from the documented github action is the path to the config file, which I keep at My config.yml file looks like this: obsidian_entrypoint_path_str: "clone-path/README.md"
exclude_glob:
- "/.obsidian"
- "/.trash"
- "/.DS_Store"
- "/.git"
- "/.publish"
toggles:
process_all: True
features:
table_of_contents:
add_toc_when_missing: TrueIn the logs, there is no output after the final |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
I think it's because I'm not commiting the
|
Beta Was this translation helpful? Give feedback.
-
|
Ok here is a working version that adds an empty Also I'm using the default output path so I had to change |
Beta Was this translation helpful? Give feedback.
Ok here is a working version that adds an empty
.obsidiandirectory to the root of clone-path: