Cleaned up for Publishing
This commit is contained in:
parent
f87eb19d41
commit
2053eca700
29
README.md
29
README.md
@ -1,2 +1,29 @@
|
|||||||
# logseq-publish-theme-tenset
|
# 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
|
||||||
|
```
|
@ -1,5 +1,5 @@
|
|||||||
name: Logseq Publish apply Tenset theme
|
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:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
@ -14,11 +14,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
- run: npm --prefix ${{ github.workspace }}/logseq-tenset-theme run build
|
- run: npm --prefix ${{ github.workspace }}/logseq-tenset-theme run build
|
||||||
shell: bash
|
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
|
- run: cp ${{ github.workspace }}/logseq-tenset-theme/build/tenset-theme.css ${{ github.workspace }}/www/static/css/custom.css
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: mkdir ${{ github.workspace }}/logseq/fonts
|
|
||||||
shell: bash
|
|
||||||
- run: cp ${{ github.workspace }}/logseq-tenset-theme/build/*.ttf ${{ github.workspace }}/www/static/css/
|
- run: cp ${{ github.workspace }}/logseq-tenset-theme/build/*.ttf ${{ github.workspace }}/www/static/css/
|
||||||
shell: bash
|
shell: bash
|
Loading…
Reference in New Issue
Block a user