Skip to content

support gdoc

support gdoc #17

Workflow file for this run

name: Build and Deploy Logseq Site
on:
push:
branches:
- main # Trigger the workflow when pushing to the 'main' branch
workflow_dispatch: # Allow manual triggering of the workflow
permissions:
contents: write # Grant permission to push changes to the repository
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: GuillaumeFalourd/setup-rsync@v1.2
- run: rsync --version
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch the entire history to enable the push to gh-pages
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Run logseq Python script
run: python template/logseq.py logseq/ build/ template/
- name: Setup Node.js
uses: actions/setup-node@v3.6.0
with:
node-version: '20.x'
- name: Install tutors-html
run: |
npm install --global tutors-html
npm install --global tutors-json
- name: Build site
run: |
cd build
tutors-json
mv json public-site
tutors-html
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/public-site