You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Logseq Publish
0.1.3
Publish your Logseq graph in a GitHub Action. ✨
This action is the missing piece for achieving a complete CD workflow for your public Logseq graph.
- It will load your graph and publish it into
www
(this is configurable) folder. - Next, you can then deploy
www
folder with JamesIves/github-pages-deploy-action.
Note: this action currently has a bug that it occasionally does not do publish successfully, see #8
Firstly, add this step to your Github workflow. You can refer to My Example Graph's workflows/main.yml as an example.
steps:
- uses: actions/checkout@v2
- name: Logseq Publish 🚩
uses: pengx17/[email protected]
- name: add a nojekyll file # to make sure asset paths are correctly identified
run: touch $GITHUB_WORKSPACE/www/.nojekyll
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: www # The folder the action should deploy.
clean: true
Whenever you push changes to your Github repo, your graph will be published to the gh-pages
branch. A few minutes later, your GitHub Pages will get updated.
If you do not want to use GitHub Action, that is totally fine. You can refer to action.yml to see how it works.