Skip to content

refactor: clean up comments and finalize new manifest structure #31

refactor: clean up comments and finalize new manifest structure

refactor: clean up comments and finalize new manifest structure #31

name: Update Registry
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
update-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Generate registry
run: npm run generate-registry
- name: Commit registry
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add registry.json
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update plugin registry [skip ci]"
git push
fi
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
publish_branch: gh-pages
force_orphan: true
exclude_assets: '.github,node_modules,scripts,PLUGIN_TEMPLATE'