Skip to content

ci: add release workflow to auto-build VSIX on tag push#2

Open
TheKingOfDuck wants to merge 2 commits into
overspace-labs:mainfrom
TheKingOfDuck:ci/tag-release-workflow
Open

ci: add release workflow to auto-build VSIX on tag push#2
TheKingOfDuck wants to merge 2 commits into
overspace-labs:mainfrom
TheKingOfDuck:ci/tag-release-workflow

Conversation

@TheKingOfDuck

Copy link
Copy Markdown

Summary

Add a GitHub Actions workflow that automatically builds the VSIX and publishes a GitHub Release when a version tag is pushed.

Trigger

  • Push tag matching v* (e.g. v1.0.0, v1.0.1)
  • Manual dispatch (workflow_dispatch) for testing/debugging

Workflow Steps

  1. 📥 Checkout code
  2. 🛠 Setup Node.js 22 (with npm cache)
  3. 📦 Install dependencies (root + webview-ui)
  4. 🔨 Build & package VSIX via vsce packagebuild/hae-<tag>.vsix
  5. 📋 Upload VSIX as a workflow artifact (30-day retention)
  6. 🚀 Create GitHub Release with the VSIX attached + auto-generated release notes

Usage

# 发布新版本:打 tag 并推送
git tag v1.0.1
git push origin v1.0.1

# Action 自动触发:构建 VSIX → 创建 Release
# Release 页面会出现 hae-v1.0.1.vsix 供用户下载

Tags containing - (e.g. v1.0.0-beta) are automatically marked as prerelease.

duck added 2 commits July 7, 2026 19:15
…/package

- Add Makefile: one-command build/package/install workflow
  (make / make package / make install / make dist)
- Add .vscodeignore: keep .vsix lean (exclude src, node_modules,
  dev configs, sourcemaps, build output)
- Add .gitignore: ignore node_modules, build artifacts, dist,
  lock files, .DS_Store, .vsix, etc.
Triggers on v* tags (e.g. v1.0.0) and manual dispatch. Installs
deps, builds and packages the .vsix via vsce, uploads it as a
workflow artifact, and creates a GitHub Release with the VSIX
attached and auto-generated release notes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant