Last active
June 28, 2023 12:37
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs | |
clean: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deprecated. See logseq/publish-spa