Skip to content

1.0.23 (#101)

1.0.23 (#101) #39

Workflow file for this run

name: Release Obsidian plugin
on:
workflow_dispatch:
push:
tags:
- "*"
env:
PLUGIN_NAME: TickTickSync # Change this to match the id of your plugin.
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Build
id: build
run: |
npm install
npm run build-without-tsc
mkdir ${{ env.PLUGIN_NAME }}
cp ./dist/main.js ./dist/manifest.json ./dist/styles.css ${{ env.PLUGIN_NAME }}
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
ls
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
- name: Create Release and Upload Assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ steps.build.outputs.tag_name }}
name: ${{ steps.build.outputs.tag_name }}
draft: false
prerelease: false
files: |
${{ env.PLUGIN_NAME }}.zip
./dist/main.js
./dist/manifest.json
./dist/styles.css