Cleaned up for Publishing

This commit is contained in:
Lu Baumann 2023-10-18 14:16:17 +00:00 committed by GitHub
parent f87eb19d41
commit 2053eca700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 6 deletions

View File

@ -1,2 +1,29 @@
# logseq-publish-theme-tenset
Action to insert logseq-tenset-theme into published page
A postprocessor for logseq-spa. Applies logseq-tenset-theme to published site
## Example Action
```yaml
on: [push]
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
name: Publish Logseq graph
steps:
- uses: actions/checkout@v3
- uses: logseq/publish-spa@main
with:
version: nightly
theme-mode: dark
- name: apply tenset theme
uses: Surferlul/logseq-publish-theme-tenset@main
- name: add a nojekyll file # to make sure asset paths are correctly identified
run: touch $GITHUB_WORKSPACE/www/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: www
```

View File

@ -1,5 +1,5 @@
name: Logseq Publish apply Tenset theme
description: inserts logseq-tenset-theme to published site
description: A postprocessor for logseq-spa. Applies logseq-tenset-theme to published site
runs:
using: composite
steps:
@ -14,11 +14,7 @@ runs:
shell: bash
- run: npm --prefix ${{ github.workspace }}/logseq-tenset-theme run build
shell: bash
- run: find | grep www
shell: bash
- run: cp ${{ github.workspace }}/logseq-tenset-theme/build/tenset-theme.css ${{ github.workspace }}/www/static/css/custom.css
shell: bash
- run: mkdir ${{ github.workspace }}/logseq/fonts
shell: bash
- run: cp ${{ github.workspace }}/logseq-tenset-theme/build/*.ttf ${{ github.workspace }}/www/static/css/
shell: bash