0.6.4 #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build plugin | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
PLUGIN_NAME: logseq-catppuccin | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' # You might need to adjust this value to your own version | |
- name: Build | |
id: build | |
run: | | |
npm i && npm run build # sass -> css | |
mkdir ${{ env.PLUGIN_NAME }} # folder for zip | |
mkdir ${{ env.PLUGIN_NAME }}/assets # folder for icon | |
cp assets/icon.png ${{ env.PLUGIN_NAME }}/assets # move icon | |
cp README.md package.json index.html index.js ctp-latte.css ctp-frappe.css ctp-macchiato.css ctp-mocha.css ctp-oled.css ${{ env.PLUGIN_NAME }} # move build assets | |
zip -r ${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip ${{ env.PLUGIN_NAME }} # create zip | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
id: create_release | |
with: | |
draft: true | |
files: | | |
package.json | |
${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip | |
ctp-latte.css | |
ctp-frappe.css | |
ctp-macchiato.css | |
ctp-mocha.css | |
ctp-oled.css | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./${{ env.PLUGIN_NAME }}/ | |
user_name: "github-actions[bot]" | |
user_email: "github-actions[bot]@users.noreply.github.com" | |
cname: logseq.catppuccin.com |