Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
arrow-up-circle

GitHub Action

Logseq Publish

0.1.3

Logseq Publish

arrow-up-circle

Logseq Publish

Publish your Logseq Graph

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Logseq Publish

uses: pengx17/[email protected]

Learn more about this action in pengx17/logseq-publish

Choose a version

Logseg Publish Action

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.

Note: this action currently has a bug that it occasionally does not do publish successfully, see #8

Usage

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.

Without GitHub Action

If you do not want to use GitHub Action, that is totally fine. You can refer to action.yml to see how it works.