From 2053eca70059bd1de4f869a96482f0e375139425 Mon Sep 17 00:00:00 2001 From: Lu Baumann Date: Wed, 18 Oct 2023 14:16:17 +0000 Subject: [PATCH] Cleaned up for Publishing --- README.md | 29 ++++++++++++++++++++++++++++- action.yml | 6 +----- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8fd206c..db5f798 100644 --- a/README.md +++ b/README.md @@ -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 +``` \ No newline at end of file diff --git a/action.yml b/action.yml index e670648..f973897 100644 --- a/action.yml +++ b/action.yml @@ -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 \ No newline at end of file