perf: send to todoist uses emoji for link to logseq #75
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 Logseq Plugin | |
on: | |
push: | |
branches: | |
- "main" | |
workflow_dispatch: | |
env: | |
PLUGIN_NAME: ${{ github.event.repository.name }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" # You might need to adjust this value to your own version | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 6.0.2 | |
- name: Build | |
id: build | |
run: | | |
pnpm i && pnpm run build | |
mkdir ${{ env.PLUGIN_NAME }} | |
cp README.md package.json icon.png ${{ env.PLUGIN_NAME }} | |
mv dist ${{ env.PLUGIN_NAME }} | |
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }} | |
ls | |
echo "tag_name=git tag --sort version:refname | tail -n 1" >> $GITHUB_OUTPUT | |
- name: Release | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |