Skip to content

Commit

Permalink
Publish with GitHub Pages (#1)
Browse files Browse the repository at this point in the history
* chore: add github actions workflow

* chore(logseq): config publish all pages

* fix: version tag

* fix: no www

* fix: gh permissions

* chore: try theme

* chore: github actions trigger

* chore: bump action version

* poc: push any branches

* only master trigger
  • Loading branch information
soyart authored Apr 10, 2024
1 parent 504d6db commit 24d7d93
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: publish
permissions:
contents: write

on:
workflow_dispatch:
push:
branches:
- master

jobs:
build:
name: build and write site spa files to www
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: touch www/.nojekyll # to make sure asset paths are correctly identified
run: "mkdir -p $GITHUB_WORKSPACE/www && touch $GITHUB_WORKSPACE/www/.nojekyll"

- name: build spa
uses: logseq/publish-spa@v0.3.1
# with:
# theme_mode: dark

- name: publish
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: publish
folder: www
clean: true
2 changes: 2 additions & 0 deletions logseq/config.edn
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
;; Example:
;; :publishing/all-pages-public? true

:publishing/all-pages-public? true

;; Specify default home page and sidebar status for Logseq
;; If not specified, Logseq default opens journals page on startup
;; value for `:page` is name of page
Expand Down

0 comments on commit 24d7d93

Please sign in to comment.