Skip to content

chore(release): v1.4.2 #25

chore(release): v1.4.2

chore(release): v1.4.2 #25

Workflow file for this run

name: Build plugin
on:
push:
tags:
- '*'
env:
PLUGIN_NAME: logseq-live-math
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Setup pnpm
run: corepack enable
- name: Build
id: build
run: |
pnpm install
pnpm build
mkdir ${{ env.PLUGIN_NAME }}
cp -r README.md LICENSE dist index.html package.json icon.svg ${{ env.PLUGIN_NAME }}
tag_name=$(git tag --sort version:refname | tail -n 1)
zip -r ${{ env.PLUGIN_NAME }}-${tag_name}.zip ${{ env.PLUGIN_NAME }}
echo "tag_name=$tag_name" >> "$GITHUB_OUTPUT"
- name: Generate Changelog
uses: orhun/git-cliff-action@v3
id: changelog
with:
args: --latest
- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.content }}
files: |
${{ env.PLUGIN_NAME }}-*.zip
package.json