From ecb6e5846c16aed8b098f2efd606e1429eaf256e Mon Sep 17 00:00:00 2001 From: Surferlul Date: Tue, 10 Oct 2023 12:07:43 +0200 Subject: [PATCH] initial action code --- .gitignore | 1 + action.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .gitignore create mode 100644 action.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..e08ba0a --- /dev/null +++ b/action.yml @@ -0,0 +1,22 @@ +name: Logseq Publish apply Tenset theme +description: inserts logseq-tenset-theme to published site +runs: + using: composite + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Set up Node + uses: actions/setup-node@v3 + - name: Check out logseq-tenset-theme repo + uses: actions/checkout@v4 + with: + repository: tenset-security/logseq-tenset-theme + path: logseq-tenset-theme + - run: npm --prefix ${{ github.workspace }}/logseq-tenset-theme i + shell: bash + - run: npm --prefix ${{ github.workspace }}/logseq-tenset-theme run build + shell: bash + - run: cp ${{ github.workspace }}/logseq-tenset-theme/build/tenset-theme.css ${{ github.workspace }}/static/css/custom.css + shell: bash + - run: cp ${{ github.workspace }}/logseq-tenset-theme/build/*.tff ${{ github.workspace }}/static/css/fonts/ + shell: bash \ No newline at end of file