Skip to content

Instantly share code, notes, and snippets.

@somidad
Last active June 28, 2023 12:37
Show Gist options
  • Save somidad/1be3e4003a48603943d8053ab89869be to your computer and use it in GitHub Desktop.
Save somidad/1be3e4003a48603943d8053ab89869be to your computer and use it in GitHub Desktop.
Deprecated. See logseq/publish-spa. GitHub workflow to publish a Logseq graph to GitHub Pages
name: Publish
on:
#push:
#branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish Logseq
uses: pengx17/logseq-publish@v0.1
with:
dest: docs
- name: Remove U+2029 from published Logseq graph for GitHub Pages
run: |
cd docs
wget -O logseq-publish-github-pages-wa.js https://gist.githubusercontent.com/gsongsong/b41dec1b348edc9e0fdfd60d43065d91/raw/edff588d4b75fa7aa04ab2048e5c1bc243a53e4b/logseq-publish-github-pages-wa.js
node logseq-publish-github-pages-wa.js
- name: Configure custom domain
run: echo "telecom.jeon.engineer" > $GITHUB_WORKSPACE/docs/CNAME
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.9
with:
branch: gh-pages
folder: docs
clean: true
@somidad
Copy link
Author

somidad commented Jun 28, 2023

Deprecated. See logseq/publish-spa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment