mirror of
https://github.com/wassname/HumanAgent-MCP.git
synced 2026-09-09 11:14:27 +08:00
Update workflow to trigger on git tags instead of releases
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
name: Publish VS Code Extension
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
@@ -21,7 +22,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Update version from release tag
|
||||
- name: Update version from tag
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
npm version $VERSION --no-git-tag-version
|
||||
@@ -32,12 +33,12 @@ jobs:
|
||||
- name: Publish to marketplace
|
||||
run: npx @vscode/vsce publish --pat ${{ secrets.VSCE_PAT }}
|
||||
|
||||
- name: Upload VSIX as release asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_path: ./humanagent-mcp-${{ github.event.release.tag_name }}.vsix
|
||||
asset_name: humanagent-mcp-${{ github.event.release.tag_name }}.vsix
|
||||
asset_content_type: application/zip
|
||||
files: ./humanagent-mcp-*.vsix
|
||||
tag_name: ${{ github.ref_name }}
|
||||
name: Release ${{ github.ref_name }}
|
||||
generate_release_notes: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user