fix: add information about supporting the plugiin development #27
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: Release Obsidian plugin | |
on: | |
push: | |
tags: | |
- "*.*.*" | |
env: | |
PLUGIN_NAME: obsidian-todotxt-plugin | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Build | |
id: build | |
run: | | |
yarn install | |
yarn run build | |
mkdir ${{ env.PLUGIN_NAME }} | |
cp dist/main.js dist/manifest.json dist/styles.css ${{ env.PLUGIN_NAME }} | |
cp dist/main.js dist/styles.css ./ | |
zip -r ${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip ${{ env.PLUGIN_NAME }} | |
ls | |
- name: Create release notes | |
uses: johnyherangi/create-release-notes@main | |
id: create-release-notes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
id: create-release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: ${{ steps.create-release-notes.outputs.release-notes }} | |
files: | | |
main.js | |
styles.css | |
manifest.json | |
${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip |