Replies: 5 comments 10 replies
-
|
I think you need to use the Digital Garden template which is an 11Ty template and deploy to GitHub. Then activate GitHub Pages and connect the plugin of your Obsidian vault to the GitHub repo. 11Ty is a Static Site Generator It has three config files one All of them with the commands for npm: In theory you can run these npm commands locally and push the output website to the Git repo. But I tried and I couldn't do it, some errors with keys or APIs I don't remember. |
Beta Was this translation helpful? Give feedback.
-
|
I looked a bit into it, and got it to work with the following workflow: You will need to add a GH_TOKEN secret to your repo, which should be a github API token having access to your repo. (You can reuse the one you have in your plugin settings) Let me know if you get it to work or not! |
Beta Was this translation helpful? Give feedback.
-
|
Hi 👋 I got it running with the following action: name: GH Pages
on:
push:
branches:
- main # Set a branch name to trigger deployment
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '23'
- run: npm install
- run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
no need to set any secret. All I had to do was disable the default action in the repo settings under „private“ and commit to main, then this action deployed the changes correctly. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Use this template and follow the steps in the included README: https://github.com/foxblock/digitalgarden_gh-pages Good luck! |
Beta Was this translation helpful? Give feedback.
-
|
Hi, awesome work with the plugin so far! I can't wait to see how much greater it becomes over time. Had a quick question: would it be possible to deploy to gh-pages without using the .github.io repo? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I read the docs. U noted that it technically should be able to be deployed to most if not any static site host. I'm interested to know how one can deploy to GitHub Pages (i.e. with URL username.github.io).
The deploy to netlify and vercel have its own template from your docs page, which makes it quite straightforward. But I couldn't figure out how to do so with GitHub Pages. Can u share the steps / how to?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions