mirror of
https://github.com/sveltejs/ai-tools.git
synced 2026-09-14 13:50:38 +08:00
ccf940cc45
Co-authored-by: Stanislav Khromov <stanislav.khromov+github@gmail.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: Release Svelte Code Writer Skill
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'plugins/svelte/skills/svelte-code-writer/**'
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
release:
|
|
permissions:
|
|
contents: write
|
|
# prevents this action from running on forks
|
|
if: github.repository == 'sveltejs/mcp'
|
|
name: Release Svelte Code Writer Skill
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Get version from date
|
|
id: version
|
|
run: echo "version=$(date +'%Y.%m.%d-%H%M%S')" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create zip
|
|
run: |
|
|
cd plugins/svelte/skills
|
|
zip -r svelte-code-writer.zip svelte-code-writer/
|
|
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: svelte-code-writer-v${{ steps.version.outputs.version }}
|
|
name: Svelte Code Writer Skill v${{ steps.version.outputs.version }}
|
|
body: |
|
|
Automated release of the Svelte Code Writer skill.
|
|
|
|
This release was triggered by changes to the `plugins/svelte/skills/svelte-code-writer/` directory.
|
|
files: plugins/svelte/skills/svelte-code-writer.zip
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|