You are helping the user set up GitHub Actions for releasing their Obsidian plugin.
Sets up GitHub Actions workflow for automated Obsidian plugin releases.
/plugin marketplace add jwplatta/prompt-library/plugin install obsidian-plugin-builder@jwplatta-claude-toolsYou are helping the user set up GitHub Actions for releasing their Obsidian plugin.
Verify prerequisites:
Create release workflow:
Create necessary files:
Provide release instructions:
Use this workflow template:
name: Release Obsidian plugin
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- run: npm ci
- run: npm run build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" \
--title "${{ github.ref_name }}" \
--draft \
main.js manifest.json styles.css
Reference: https://docs.obsidian.md/Plugins/Releasing/Release+your+plugin+with+GitHub+Actions