Skip to content

Commit

Permalink
make pages public and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pwright committed Sep 7, 2024
1 parent adc3429 commit 837bb82
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
branches: [main]
paths-ignore:
- '*.md'
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
name: Run the action on logseq graph and publish
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build graph's SPA
uses: logseq/publish-spa@main
with:
graph-directory: logseq
theme-mode: dark
accent-color: cyan

- name: Add a nojekyll file # to make sure asset paths are correctly identified
run: touch $GITHUB_WORKSPACE/www/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: www
5 changes: 4 additions & 1 deletion logseq/logseq/config.edn
Original file line number Diff line number Diff line change
Expand Up @@ -420,4 +420,7 @@
;; ;use Percent-encoding for other invalid characters
:file/name-format :triple-lowbar
:feature/enable-flashcards? false
:journal/page-title-format "dd-MM-yyyy"}
:journal/page-title-format "dd-MM-yyyy"
:publishing/all-pages-public? true
:feature/enable-timetracking? false
:editor/preferred-pasting-file? true}

0 comments on commit 837bb82

Please sign in to comment.