Skip to content

change publish

change publish #8

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
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install Tutors HTML
run: npm install -g tutors-html
- name: Run tutors-html
run: |
cd build
npx tutors-html
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/public-site # Folder containing the generated website