diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3edfe83..2ce0cff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,11 @@ name: Release on: push: tags: ['v*'] + workflow_dispatch: + inputs: + tag: + description: "Existing tag to release (e.g. v2.0.0)" + required: true permissions: contents: write @@ -10,24 +15,31 @@ permissions: jobs: release: runs-on: ubuntu-latest + env: + TAG: ${{ inputs.tag || github.ref_name }} steps: - uses: actions/checkout@v4 + with: + ref: ${{ inputs.tag || github.ref }} - name: Check tag matches plugin version run: | v=$(python3 -c 'import json;print(json.load(open(".claude-plugin/plugin.json"))["version"])') - [ "v$v" = "${GITHUB_REF_NAME}" ] || { echo "tag ${GITHUB_REF_NAME} != plugin.json v$v"; exit 1; } + [ "v$v" = "$TAG" ] || { echo "tag $TAG != plugin.json v$v"; exit 1; } - name: Build the Claude.ai skill zip run: scripts/build-skill.sh dist/html-artifacts.skill - name: Extract release notes from CHANGELOG run: | - v="${GITHUB_REF_NAME#v}" - awk -v v="$v" '/^## /{p = index($0, "[" v "]") > 0 || index($0, " " v " ") > 0 || $0 ~ ("^## " v "( |$)")} p' CHANGELOG.md > notes.md + v="${TAG#v}" + awk -v v="$v" '/^## /{p = index($0, "[" v "]") > 0} p' CHANGELOG.md > notes.md [ -s notes.md ] || echo "See CHANGELOG.md." > notes.md + cat notes.md - uses: softprops/action-gh-release@v2 with: + tag_name: ${{ env.TAG }} + name: ${{ env.TAG }} body_path: notes.md files: dist/html-artifacts.skill diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a24035..0230ce9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,9 +32,9 @@ The skill was written for models that needed to be told how to write HTML. Four - The committed `html-artifacts.skill` zip. It is now a release asset built by CI, so it cannot drift from `skills/`. - Leftover copy from the source article ("Greg or anyone else may open it on a phone") and a hardcoded path to a `frontend-design` skill. -## [1.0.0] - 2026-05-08 +## [0.1.0] - 2026-05-08 Initial release: `SKILL.md` with the recognition heuristic and universal rules, eight per-category references, six examples, and the GitHub Pages site. -[2.0.0]: https://github.com/dogum/html-artifacts/compare/v1.0.0...v2.0.0 -[1.0.0]: https://github.com/dogum/html-artifacts/releases/tag/v1.0.0 +[2.0.0]: https://github.com/dogum/html-artifacts/compare/v0.1.0...v2.0.0 +[0.1.0]: https://github.com/dogum/html-artifacts/releases/tag/v0.1.0